The state of connection to an asynchronous computation.

See also:

  • AsyncSnapshot, which augments a connection state with information received from the asynchronous computation.

Constants

active ConnectionState

Connected to an active asynchronous computation.

const ConnectionState(2)
done ConnectionState

Connected to a terminated asynchronous computation.

const ConnectionState(3)
none ConnectionState

Not currently connected to any asynchronous computation.

const ConnectionState(0)
values List<ConnectionState>

A constant List of the values in this enum, in order of their declaration.

const List<ConnectionState>
waiting ConnectionState

Connected to an asynchronous computation and awaiting interaction.

const ConnectionState(1)

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited