WebSocketExchangeManager class

Web Socket Exchange Manager

Properties

first WebSocketExchange
The first element in values.
no setter
hashCode int
The hash code for this object.
no setterinherited
last WebSocketExchange
The last element in values.
no setter
length int
The number of key/value pairs in the lookup table.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Iterable<WebSocketExchange>
All exchanges.
no setter

Methods

clear() → void
Remove all entries.
complete(JsonRpcResponse response, {bool remove = false}) → void
Completes the exchange for the provided response.
dispose([Object? error, StackTrace? stackTrace]) → void
Completes all exchanges with error (or a WebSocketException) and clears the lookup table.
get<T>(dynamic key) WebSocketExchange<T>?
Returns the exchange associated with key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove<T>(int? id) WebSocketExchange<T>?
Removes id and its associated value from the map.
removeFirst<T>() WebSocketExchange<T>?
Removes the first entry in the map and returns its associated value.
set(WebSocketExchange value) → void
Associates the exchange id and hash with its value.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited