Peer constructor
const
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,
Implementation
const Peer({
required this.address,
required this.clientName,
required this.clientIsChoked,
required this.clientIsInterested,
required this.flagStr,
required this.isDownloadingFrom,
required this.isEncrypted,
required this.isIncoming,
required this.isUploadingTo,
required this.isUTP,
required this.peerIsChoked,
required this.peerIsInterested,
required this.port,
required this.progress,
required this.rateToClient,
required this.rateToPeer,
});