asByteArrayAsync property

Future<List<int>?> get asByteArrayAsync

Implementation

Future<List<int>?> get asByteArrayAsync async {
  var a = asByteArray;
  if (a != null) return a;
  var bytes = await asByteBufferAsync;
  return bytes?.asUint8List();
}