last property

  1. @override
T last
override
  1. If the set's config has ConfigSet.sort true, will return the last 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 last item by insertion will be returned.

Implementation

@override
T get last => config.sort ? (flush._s as SFlat<T>).last : _s.last;