name property
String
name
Returns the String representation of the openrouteservice profile represented by the enum.
Throws ArgumentError if the enum is not a valid profile.
Implementation
String get name {
if (_profileToNameMap.containsKey(this)) {
return _profileToNameMap[this]!;
}
throw ArgumentError('Unknown ORSProfile: $this');
}