coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case notStarted:
      return 0;
    case started:
      return 1;
    case paused:
      return 2;
    case succeeded:
      return 3;
    case failed:
      return 4;
    case canceling:
      return 5;
  }
}