Disconnecting class final
The WebSocket connection is in the process of being closed.
This state indicates that a disconnection has been initiated and is in progress. The connection is being gracefully closed and will transition to Disconnected once the closure is complete.
- Inheritance
-
- Object
- WebSocketConnectionState
- Disconnecting
Constructors
- Disconnecting({required DisconnectionSource source})
-
Creates a Disconnecting connection state.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
Whether the connection state is currently active.
no setterinherited
- isAutomaticReconnectionEnabled → bool
-
Whether automatic reconnection is enabled for this connection state.
no setterinherited
- isConnected → bool
-
Whether the connection state is in
connectedstate.no setterinherited -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → DisconnectionSource
-
The source that initiated the disconnection.
final
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited