remove<T> method

WebSocketExchange<T>? remove<T>(
  1. int? id
)

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);