toUrlString method
Implementation
@override
String toUrlString() {
if (locations.isEmpty) {
throw StateError(
'Marker must contain at least one location. '
'Empty array was provided to "locations" argument.',
);
}
String string = "";
final markerSize = size?.value;
if (markerSize != null) string += "size:$markerSize$_separator";
if (label != null) {
string += "label:${label![0].toUpperCase()}$_separator";
}
if (color != null) {
string += "color:${color!.to24BitHexString()}$_separator";
}
if (locations.isNotEmpty) {
string += _markerLocationsString;
}
return string;
}