remove<T> method
Removes id and its associated value from the map.
Returns the value associated with id before it was removed.
Returns null if id was not in the map.
Implementation
WebSocketExchange<T>? remove<T>(final int? id) => _keyToExchange.removeAt(id, index: 0);