asUint8List abstract method

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

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

Uint8List asUint8List([int offset = 0, int? length]);