description

# toDart property

Uint8List get toDart

Converts this JSUint8Array to a Uint8List by either casting or wrapping it.

Note

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.

## Implementation

    external Uint8List get toDart;