MarkerCollection constructor
- required MarkerType markerType,
- required String name,
Create a new MarkerCollection.
Parameters
markerType: The kind of marker geometry stored by this collection.name: A human readable name for the collection.
Returns
- A new MarkerCollection instance that can be added to MapViewMarkerCollections.
Implementation
factory MarkerCollection({
required final MarkerType markerType,
required final String name,
}) {
return MarkerCollection._create(0, markerType, name);
}