NetworkEvent enum
Network notification event.
Values
- protocolVersionMismatch → const NetworkEvent
-
A peer has appeared with higher protocol version than us. Probably means we are using outdated library. This event can be used to notify the user that they should update the app.
- peerSetChange → const NetworkEvent
-
The set of known peers has changed (e.g., a new peer has been discovered)
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
-
encode(
Packer p) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toInt(
) → int -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
Unpacker u) → NetworkEvent? -
fromInt(
int n) → NetworkEvent?
Constants
-
values
→ const List<
NetworkEvent> - A constant List of the values in this enum, in order of their declaration.