routeTypeToString function

String routeTypeToString(
  1. RouteType type
)

Implementation

String routeTypeToString(RouteType type) {
  if (type == RouteType.tolls) return 'tolls';
  if (type == RouteType.highways) return 'highways';
  if (type == RouteType.ferries) return 'ferries';
  if (type == RouteType.indoor) return 'indoor';
  return null;
}