third property

T get third

Returns the third element of the list.

Equivalent to theList[2]. Throws a StateError if the list doesn't have a third element.

Implementation

T get third => _getElement('third', 2);
set third (T value)

Updates the third position of the list to contain value.

Equivalent to theList[2] = value. Throws a StateError if the list doesn't have a third element.

Implementation

/// Throws a [StateError] if the list doesn't have a third element.
void set third(T value) => _setElement('third', 2, value);