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

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 connected state.
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, the toString method will be overridden to output this instance's props.
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