tenthLast property

T get tenthLast

Returns the tenth last element of the list.

Equivalent to theList[theList.length - 10]. Throws a StateError if the list doesn't have a tenth last element.

Implementation

T get tenthLast => _getElement('tenthLast', length - 10);
set tenthLast (T value)

Updates the tenth last position of the list to contain value.

Equivalent to theList[theList.length - 10] = value. Throws a StateError if the list doesn't have a tenth last element.

Implementation

void set tenthLast(T value) => _setElement('tenthLast', length - 10, value);