thirdLast property
T
get
thirdLast
Returns the third last element of the list.
Equivalent to theList[theList.length - 3].
Throws a StateError if the list doesn't have a third last element.
Implementation
T get thirdLast => _getElement('thirdLast', length - 3);
set
thirdLast
(T value)
Updates the third last position of the list to contain value.
Equivalent to theList[theList.length - 3] = value.
Throws a StateError if the list doesn't have a third last element.
Implementation
void set thirdLast(T value) => _setElement('thirdLast', length - 3, value);