ConnectionState enum

The possible states of the websocket connection to the Kabelwerk backend.

Connection states
Inheritance

Constructors

ConnectionState()
const

Values

inactive → const ConnectionState

There is no connection established to the Kabelwerk backend, nor it is attempted. This is the state before calling Kabelwerk.connect or after calling Kabelwerk.disconnect.

connecting → const ConnectionState

The Kabelwerk instance is actively trying to establish connection to the Kabelwerk backend. This is the state right after calling Kabelwerk.connect before the connection is established. This is also the state after a connection drop, before it gets re-established.

online → const ConnectionState

The Kabelwerk instance is connected to the backend.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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

Constants

values → const List<ConnectionState>
A constant List of the values in this enum, in order of their declaration.