getBytesFromPointer method Null safety

Uint8List getBytesFromPointer(
  1. Pointer<Uint8> pointer,
  2. int size
)

Implementation

static Uint8List getBytesFromPointer(Pointer<Uint8> pointer, int size) {
  return Uint8List.fromList(pointer.asTypedList(size));
}