add method

void add(
  1. Marker marker, {
  2. int index = -1,
})

Add a new marker to collection.

Parameters

  • IN marker The marker added to the collection.
  • IN index The new marker position in collection. -1 means at the collection end (topmost).

Throws

  • An exception if it fails.

Implementation

void add(final Marker marker, {final int index = -1}) {
  objectMethod(_pointerId, 'MarkerCollection', 'add', args: marker.pointerId);
}