lastIndex property

int get lastIndex

Returns the last index of the iterable.

Implementation

int get lastIndex => length - 1;