FicSetExtension<T> extension

See also: FicListExtension

on

Properties

lock → ISet<T>

Available on Set<T>, provided by the FicSetExtension extension

Locks the set, returning an immutable set (ISet).
no setter
lockUnsafe → ISet<T>

Available on Set<T>, provided by the FicSetExtension extension

Locks the set, returning an immutable set (ISet).
no setter

Methods

diffAndIntersect<G>(Set<G> other, {bool diffThisMinusOther = true, bool diffOtherMinusThis = true, bool intersectThisWithOther = true, bool intersectOtherWithThis = true}) → DiffAndIntersectResult<T, G>

Available on Set<T>, provided by the FicSetExtension extension

Given this set and other, returns:
removeNulls() → void

Available on Set<T>, provided by the FicSetExtension extension

Removes all nulls from the Set.
toggle(T item) → bool

Available on Set<T>, provided by the FicSetExtension extension

If the item doesn't exist in the set, add it and return true. Otherwise, if the item already exists in the set, remove it and return false.