MapObjectCollection constructor
MapObjectCollection({
- required MapObjectId mapId,
- required List<
MapObject> mapObjects, - double zIndex = 0.0,
- TapCallback<
MapObjectCollection> ? onTap, - bool consumeTapEvents = false,
- bool isVisible = true,
Implementation
MapObjectCollection({
required this.mapId,
required List<MapObject> mapObjects,
this.zIndex = 0.0,
this.onTap,
this.consumeTapEvents = false,
this.isVisible = true
}) : mapObjects = List.unmodifiable(mapObjects.groupFoldBy<MapObjectId, MapObject>(
(element) => element.mapId,
(previous, element) => element
).values);