add method

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

Add a coordinate to this marker.

Adds coord to the requested part. If index is provided and >= 0 the coordinate is inserted at that position; otherwise it is appended.

Parameters

  • coord: The Coordinates to add.
  • index: Optional insertion index (default: -1, append).
  • part: Part index where the coordinate will be added (default: 0).

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},
  );
}