transitModeToString function

String transitModeToString(
  1. TransitMode type
)

Implementation

String transitModeToString(TransitMode type) {
  if (type == TransitMode.bus) return 'bus';
  if (type == TransitMode.subway) return 'subway';
  if (type == TransitMode.train) return 'train';
  if (type == TransitMode.tram) return 'tram';
  if (type == TransitMode.rail) return 'rail';
  return null;
}