asUint16List property

Uint16List get asUint16List

Ensures that this List is an Uint16List.

Calls toUint16List if needed, or just cast to Uint16List.

Implementation

Uint16List get asUint16List =>
    this is Uint16List ? (this as Uint16List) : toUint16List();