asCopy<T extends TypedDataList> method

  1. @override
T asCopy<T extends TypedDataList>(
  1. int length
)
override

Copies length bytes, viewed as T.

T must be a concrete TypedDataList type: Uint8List, Int32List, Float32List, etc. Throws if T isn't one of those.

Implementation

@override
T asCopy<T extends TypedDataList>(int length) => ptr.asCopy<T>(length);