MarkerCollection constructor

MarkerCollection({
  1. required MarkerType markerType,
  2. 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

Implementation

factory MarkerCollection({
  required final MarkerType markerType,
  required final String name,
}) {
  return MarkerCollection._create(0, markerType, name);
}