toUint8List method

Uint8List toUint8List({
  1. int? length,
})

Implementation

typed.Uint8List toUint8List({int? length}) {
  _ensureNotNullptr('toUint8List');
  if (length != null) {
    RangeError.checkNotNegative(length, 'length');
  } else {
    length = _length(this);
  }
  return asTypedList(length);
}