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