add method
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);
}