Connectedness enum
Connectedness signals the capacity for a connection with a given node. It is used to signal to services and other peers whether a node is reachable.
Values
- notConnected → const Connectedness
-
No connection to peer, and no extra information (default)
- connected → const Connectedness
-
Has an open, live connection to peer
- canConnect → const Connectedness
-
Recently connected to peer, terminated gracefully Deprecated: Will be removed in a future release
- cannotConnect → const Connectedness
-
Recently attempted connecting but failed to connect Deprecated: Will be removed in a future release
- limited → const Connectedness
-
Has a transient connection to the peer, but aren't fully connected
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<
Connectedness> - A constant List of the values in this enum, in order of their declaration.