add method

void add(
  1. Coordinates coord, {
  2. int index = -1,
  3. int part = 0,
})

Add a new coordinate to the marker.

Parameters

  • IN coords The coordinate to be added.
  • IN index The position where the coordinate is added, default -1 (append at the end).
  • IN part The marker part index to which the function applies, default 0 (first part).

Throws

  • An exception if it fails.

Implementation

void add(final Coordinates coord,
    {final int index = -1, final int part = 0}) {
  objectMethod(
    _pointerId,
    'Marker',
    'add',
    args: <String, Object>{
      'coord': coord,
      'index': index,
      'part': part,
    },
  );
}