asInt16List property

Int16List get asInt16List

Ensures that this List is an Int16List.

Calls toInt16List if needed, or just cast to Int16List.

Implementation

Int16List get asInt16List =>
    this is Int16List ? (this as Int16List) : toInt16List();