first property

  1. @override
T get first
override
  1. 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.
  2. 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;