getAsBytes method

Uint8List? getAsBytes()

Implementation

Uint8List? getAsBytes() {
  final buf = TValueBuffer();
  if (!getData(buf, false)) return null;
  final v = buf.value;
  if (v is Uint8List) return v;
  if (v is List<int>) return Uint8List.fromList(v);
  return null;
}