update method

void update(
  1. Coordinates coord,
  2. int index, {
  3. int? part,
})

Update a coordinate in the marker.

Parameters

  • IN coords The new coordinate value.
  • IN index The position of the updated coordinate.
  • IN part The marker part index to which the function applies, default 0 (first part).

Throws

  • An exception if it fails.

Implementation

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