setCoordinates method

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

Set marker part coordinates.

Parameters

  • IN coords The coordinates list to be set as marker part.
  • IN part The marker part index to which the function applies, default 0 (first part).

If part == partCount, a new part is automatically added to the marker and the coordinate is assigned to it.

Throws

  • An exception if it fails.

Implementation

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