removeFirst<T> method
Removes the first entry in the map and returns its associated value.
Returns null if the map is empty.
Implementation
WebSocketExchange<T>? removeFirst<T>() => remove(_keyToExchange.keys.first[0]);
Removes the first entry in the map and returns its associated value.
Returns null if the map is empty.
WebSocketExchange<T>? removeFirst<T>() => remove(_keyToExchange.keys.first[0]);