asList method

Uint8List? asList()

Get a list view of the underlying data. Must call destroy() later after not longer use.

Implementation

Uint8List? asList() {
  if (_ptr != null && _ptr != nullptr) {
    return _ptr!.asTypedList(_length);
  }
  return null;
}