toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DistanceUnit.metric:
      return 'METRIC';
    case DistanceUnit.imperial:
      return 'IMPERIAL';
  }
}