Uint8List asUint8List(
[int offsetInBytes = 0,
int length]
)

Creates a new Uint8List view of this buffer.

Source

/**
 * Creates a new [Uint8List] view of this buffer.
 */
Uint8List asUint8List([int offsetInBytes = 0, int length]);