fourthLast property

T get fourthLast

Returns the fourth last element of the list.

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

Implementation

T get fourthLast => _getElement('fourthLast', length - 4);
set fourthLast (T value)

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

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

Implementation

void set fourthLast(T value) => _setElement('fourthLast', length - 4, value);