travelModeToString function

String travelModeToString(
  1. TravelMode mode
)

Implementation

String travelModeToString(TravelMode mode) {
  if (mode == TravelMode.driving) return 'driving';
  if (mode == TravelMode.walking) return 'walking';
  if (mode == TravelMode.bicycling) return 'bicycling';
  if (mode == TravelMode.transit) return 'transit';
  return null;
}