markers property
Literally, a Set of markers provided to the Animarker widget. All the elements shouldn't be duplicated.
The MarkerId
should be unique at the set, duplicated MarkerId
s would led to an error
final Map<MarkerId, Marker> _markers = <MarkerId, Marker>{}
Animarker(
markers: <Marker>{
..._markers.values.toSet(),
RippleMarker(
icon: BitmapDescriptor.defaultMarker,
markerId: MarkerId('MarkerId1'),
position: LatLng(0, 0),
ripple: false,
),
Marker(
markerId: MarkerId('MarkerId2'),
position: LatLng(0, 0),
),
},
When a Marker has changed a new location update is pushed to the Location Queue.
Implementation
final Set<Marker> markers;