CollectiveSet<E>.unmodifiable constructor
CollectiveSet<E>.unmodifiable (
- CollectiveSet<
E> bind, { - bool unmodifiableElement = true,
Creates an unmodifiable view of an existing CollectiveSet.
Parameters:
- bind: The set to make unmodifiable
- unmodifiableElement: If true, makes elements unmodifiable too
Implementation
factory CollectiveSet.unmodifiable(CollectiveSet<E> bind, {bool unmodifiableElement = true}) {
return UnmodifiableCollectiveSet<E>.bind(bind, unmodifiableElement: unmodifiableElement);
}