Appearance
JSUint8ArrayToUint8List
extension JSUint8ArrayToUint8List on JSUint8ArrayConversions from JSUint8Array to Uint8List.
Properties
toDart extension no setter
Uint8List get toDartConverts this JSUint8Array to a Uint8List by either casting or wrapping it.
INFO
Depending on whether code is compiled to JavaScript or Wasm, this conversion will have different semantics.
When compiling to JavaScript, Uint8Lists are JSUint8Arrays and this operation will be a cast.
When compiling to Wasm, the JSUint8Array is wrapped with a Uint8List implementation and the wrapper is returned.
Modifications to this JSUint8Array will affect the returned Uint8List and vice versa.
Available on JSUint8Array, provided by the JSUint8ArrayToUint8List extension
Implementation
dart
external Uint8List get toDart;