last property

T get last

Returns the last element in the set.

Throws a StateError if the set is empty.

Implementation

T get last => value.last;