payload property

  1. @override
Uint8List? get payload
override

Implementation

@override
Uint8List? get payload {
  var carrierTypeBytes = utf8.encode(carrierType!);
  List<int>? payload = ([_carrierTnf, carrierTypeBytes.length] +
          carrierTypeBytes +
          carrierData)
      .cast();
  return Uint8List.fromList(payload);
}
  1. @override
set payload (Uint8List? payload)
override

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();
}