last property
- 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. - 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;