payloadBytes property

Uint8List? get payloadBytes

Implementation

Uint8List? get payloadBytes {
  final binary = bytes;
  if (binary != null) return binary;
  final value = text;
  if (value != null) return Uint8List.fromList(utf8.encode(value));
  return null;
}