asUint8List method
Returns this instance as a Uint8List. Returns the internal bytes
buffer if the length and capacity is the same, otherwise creates a
copy with the exact length.
Implementation
@override
Uint8List asUint8List([int offset = 0, int? length]) =>
_fromUint8List(_bytes, offset, length, _length);