first property
- If the set's config has ConfigSet.sort
true
, will return the first element in the natural order of items. Note: This is not a fast operation, as ISets are not naturally sorted. - If the set's config has ConfigSet.sort
false
(the default), or if the items are not Comparable, the first item by insertion will be returned.
Implementation
@override
T get first => config.sort ? (flush._s as SFlat<T>).first : _s.first;