SplayTreeSet<E>.of constructor Null safety
Creates a SplayTreeSet from elements
.
The set works as if created by new SplayTreeSet<E>(compare, isValidKey)
.
All the elements
should be valid as arguments to the compare
function.
Implementation
factory SplayTreeSet.of(Iterable<E> elements,
[int Function(E key1, E key2)? compare,
bool Function(dynamic potentialKey)? isValidKey]) =>
SplayTreeSet(compare, isValidKey)..addAll(elements);