asUint8List method

  1. @override
Uint8List asUint8List([
  1. int offset = 0,
  2. int? length
])
override

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);