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