ByteData asByteData(
[int offsetInBytes = 0,
int length]
)

Creates a new ByteData view of this buffer.

Source

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