coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case unknown:
      return 0;
    case inches:
      return 1;
    case feet:
      return 2;
    case yards:
      return 3;
    case miles:
      return 4;
    case millimeters:
      return 5;
    case centimeters:
      return 6;
    case decimeters:
      return 7;
    case meters:
      return 8;
    case kilometers:
      return 9;
    case nauticalMiles:
      return 10;
    case decimalDegrees:
      return 11;
    case seconds:
      return 12;
    case minutes:
      return 13;
    case hours:
      return 14;
    case days:
      return 15;
  }
}