removeSymbols method

Future<void> removeSymbols(
  1. Iterable<Symbol> symbols
)

Removes the specified symbols from the map. The symbols must be current members of the symbols set.

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

The returned Future completes once listeners have been notified.

Implementation

Future<void> removeSymbols(Iterable<Symbol> symbols) async {
  final ids = symbols.where((s) => _symbols[s.id] == s).map((s) => s.id);
  assert(symbols.length == ids.length);

  await _removeSymbols(ids);
  notifyListeners();
}