coreValue property

  1. @visibleForTesting
int coreValue

Implementation

@visibleForTesting
int get coreValue {
  switch (this) {
    case other:
      return 0;
    case centimeters:
      return 1033;
    case feet:
      return 9002;
    case inches:
      return 109008;
    case kilometers:
      return 9036;
    case meters:
      return 9001;
    case miles:
      return 9093;
    case millimeters:
      return 1025;
    case nauticalMiles:
      return 9030;
    case yards:
      return 9096;
  }
}