payload property
Implementation
@override
Uint8List? get payload {
var carrierTypeBytes = utf8.encode(carrierType!);
List<int>? payload = ([_carrierTnf, carrierTypeBytes.length] +
carrierTypeBytes +
carrierData)
.cast();
return Uint8List.fromList(payload);
}
Implementation
@override
set payload(Uint8List? payload) {
ByteStream stream = ByteStream(payload!);
_carrierTnf = stream.readByte() & 7;
int carrierTypeLength = stream.readByte();
carrierType = utf8.decode(stream.readBytes(carrierTypeLength));
carrierData = stream.readAll();
}