insertMarker method
Adds marker dynamically in the provided index.
If the MapShapeLayer.initialMarkersCount is 10 and if the index given for the insertMarker method is 10 which is greater than the available indices, then the marker will be added as a last item.
See also:
- MapShapeLayer.markerBuilder, to return the MapMarker.
Implementation
void insertMarker(int index) {
_notifyMarkerListeners(MarkerAction.insert, <int>[index]);
}