removeAll method

Future<void> removeAll(
  1. Iterable<MarkerId> markerIds
)

Removes markers in one native command.

Implementation

Future<void> removeAll(Iterable<MarkerId> markerIds) async {
  final ids = markerIds.toSet();
  if (ids.isEmpty) return;
  final transport = await _controller._readyTransport();
  await transport.removeMarkers(ids);
  _issuedIds.removeAll(ids);
}