insertMarker method

void insertMarker(
  1. int index
)

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:

Implementation

void insertMarker(int index) {
  _notifyMarkerListeners(MarkerAction.insert, <int>[index]);
}