removeLine method

Future<void> removeLine(
  1. Line line
)

Removes the specified line from the map. The line must be a current member of the lines set.

Change listeners are notified once the line has been removed on the platform side.

The returned Future completes once listeners have been notified.

Implementation

Future<void> removeLine(Line line) async {
  assert(line != null);
  assert(_lines[line.id] == line);
  await _removeLine(line.id!);
  notifyListeners();
}