removeFirst<T> method

WebSocketExchange<T>? removeFirst<T>()

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