AtConnectionState class
What a client's connection to its atServer is, and why.
Constructors
- AtConnectionState.offline(AtConnectionCause cause, {Object? error})
- AtConnectionState.online()
- AtConnectionState.refused(AtConnectionCause cause, {Object? error})
Properties
- at → DateTime
-
When this state was reached, in UTC.
final
- cause → AtConnectionCause?
-
Why the outcome is not online; null when it is.
final
- error → Object?
-
What threw, when something did.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOffline → bool
-
no setter
- isOnline → bool
-
no setter
- isRefused → bool
-
no setter
- outcome → AtConnectionOutcome
-
final
- 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
-
sameAs(
AtConnectionState other) → bool -
Whether
otherdescribes the same situation: outcome and cause, not the moment or the exception object. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited