fifthLast property

T get fifthLast

Returns the fifth last element of the list.

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

Implementation

T get fifthLast => _getElement('fifthLast', length - 5);
set fifthLast (T value)

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

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

Implementation

void set fifthLast(T value) => _setElement('fifthLast', length - 5, value);