length property Null safety

int length

Returns number of elements in the tensor.

Implementation

int get length => elements.length;