removeSymbol method

Future<void> removeSymbol(
  1. Symbol symbol
)

Removes the specified symbol from the map. The symbol must be a current member 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> removeSymbol(Symbol symbol) async {
  assert(_symbols[symbol.id] == symbol);
  await _removeSymbols([symbol.id]);
  notifyListeners();
}