twentieth property

T get twentieth

Returns the twentieth element of the list.

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

Implementation

T get twentieth => _getElement('twentieth', 19);
set twentieth (T value)

Updates the twentieth position of the list to contain value.

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

Implementation

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