Peer class
Constructors
- Peer({required String address, required String clientName, required bool clientIsChoked, required bool clientIsInterested, required String flagStr, required bool isDownloadingFrom, required bool isEncrypted, required bool isIncoming, required bool isUploadingTo, required bool isUTP, required bool peerIsChoked, required bool peerIsInterested, required num port, required num progress, required num rateToClient, required num rateToPeer})
-
const
- Peer.fromJson(JsonMap rawData)
-
factory
Properties
- address → String
-
final
- clientIsChoked → bool
-
final
- clientIsInterested → bool
-
final
- clientName → String
-
final
- flagStr → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDownloadingFrom → bool
-
final
- isEncrypted → bool
-
final
- isIncoming → bool
-
final
- isUploadingTo → bool
-
final
- isUTP → bool
-
final
- peerIsChoked → bool
-
final
- peerIsInterested → bool
-
final
- port → num
-
final
- progress → num
-
final
- rateToClient → num
-
final
- rateToPeer → num
-
final
- 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