setCoordinates method

void setCoordinates(
  1. List<Coordinates> coords, {
  2. int part = 0,
})

Replace the coordinates for a specific part.

If part equals the current partCount, a new part will be appended and the provided coordinates will be assigned to it.

Parameters

  • coords: New coordinates list for the part.
  • part: Optional part index. If omitted, part 0 is replaced.

Implementation

void setCoordinates(final List<Coordinates> coords, {final int part = 0}) {
  objectMethod(
    _pointerId,
    'Marker',
    'setCoordinates',
    args: <String, Object>{'coords': coords, 'part': part},
  );
}