first property

T get first

Returns the first element in the set.

Throws a StateError if the set is empty.

Implementation

T get first => value.first;