PeerSource enum

How was the peer discovered.

Inheritance
Available extensions

Values

userProvided → const PeerSource

Explicitly added by the user.

listener → const PeerSource

Peer connected to us.

localDiscovery → const PeerSource

Discovered on the Local Discovery.

dht → const PeerSource

Discovered on the DHT.

peerExchange → const PeerSource

Discovered on the Peer Exchange.

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) → PeerSource?
fromInt(int n) → PeerSource?

Constants

values → const List<PeerSource>
A constant List of the values in this enum, in order of their declaration.