SessionHostState enum
The lifecycle of a SessionHostServer.
idle and stopped differ only in history: both refuse connections, but
stopped says the host ran once. disposed is terminal.
Values
- idle → const SessionHostState
-
Built, never started. Refuses connections unless the host can start itself (see SessionHostServer.ownsTransport).
- running → const SessionHostState
-
Accepting connections.
- stopped → const SessionHostState
-
Stopped, and startable again.
- disposed → const SessionHostState
-
Disposed. Terminal: the event stream is closed and nothing restarts.
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<
SessionHostState> - A constant List of the values in this enum, in order of their declaration.