deleteRange method

void deleteRange(
  1. int from,
  2. int to, {
  3. int part = 0,
})

Delete a range of coordinates in a part.

Removes coordinates starting at from and ending before to. If to is -1, deletion continues to the end of the part's coordinate list.

Parameters

  • from: Start index (inclusive).
  • to: End index (exclusive) or -1 to delete until the end.
  • part: Part index (default: 0).

Implementation

void deleteRange(int from, int to, {int part = 0}) {
  objectMethod(
    _pointerId,
    'Marker',
    'delRange',
    args: <String, Object>{'from': from, 'to': to, 'part': part},
  );
}