description

# toDart property

Int8List get toDart

Converts this JSInt8Array to a Int8List 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, Int8Lists are JSInt8Arrays and this operation will be a cast.

When compiling to Wasm, the JSInt8Array is wrapped with a Int8List implementation and the wrapper is returned.

Modifications to this JSInt8Array will affect the returned Int8List and vice versa.

## Implementation

    external Int8List get toDart;