lastIndex property

int get lastIndex

The last index on this iterable.

Ie [A,B,C].lastIndex == 2

Implementation

int get lastIndex => length == 0 ? throw RangeError('Cannot find the last index of an empty iterable') : length - 1;