ConnectionState enum
Represents underlying twilsock connection state.
Values
- CONNECTING → const ConnectionState
-
Transport is trying to connect and register or trying to recover.
- CONNECTED → const ConnectionState
-
Transport is working.
- DISCONNECTED → const ConnectionState
-
Transport is not working.
- DENIED → const ConnectionState
-
Transport was not enabled because authentication token is invalid or not authorized.
- ERROR → const ConnectionState
-
Error in connecting or sending transport message. Possibly due to offline.
- FATAL_ERROR → const ConnectionState
-
Server has rejected enabling transport and customer action is required.
- UNKNOWN → const ConnectionState
-
Unknown connection state
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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.