MapObjectCollection class

A collection of MapObject to be displayed on YandexMap All mapObjects must be unique, i.e. each MapObject.mapId must be unique

Implemented types

Constructors

MapObjectCollection({required MapObjectId mapId, required List<MapObject> mapObjects, double zIndex = 0.0, TapCallback<MapObjectCollection>? onTap, bool consumeTapEvents = false, bool isVisible = true})

Properties

consumeTapEvents → bool
True if the placemark consumes tap events. If not, the map will propagate tap events to other map objects at the point of tap.
final
hashCode → int
The hash code for this object.
no setterinherited
isVisible → bool
Manages visibility of the object on the map.
final
mapId → MapObjectId
A unique identifier for this object in the scope of a single YandexMap
final
mapObjects → List<MapObject>
List of MapObject in this collection.
final
onTap → TapCallback<MapObjectCollection>?
Callback to call when any of this collection mapObjects receives a tap
final
props → List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
zIndex → double
z-order
final

Methods

clone() → MapObjectCollection
Returns a duplicate of this object.
override
copyWith({List<MapObject>? mapObjects, double? zIndex, TapCallback<MapObjectCollection>? onTap, bool? consumeTapEvents, bool? isVisible}) → MapObjectCollection
dup(MapObjectId mapId) → MapObjectCollection
Creates a new copy of T with the same attributes as the original except its id
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to something serializable in JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited