UnmodifiableCollectiveSet<E> constructor

UnmodifiableCollectiveSet<E>(
  1. Iterable<E> elements, {
  2. bool unmodifiableElement = true,
  3. CollectiveSetProperties<E>? properties,
})

Creates an unmodifiable set with initial elements.

Parameters:

  • elements: Initial elements
  • unmodifiableElement: If true, makes elements unmodifiable when they're Cells
  • properties: Configuration properties

Implementation

UnmodifiableCollectiveSet(Iterable<E> elements, {bool unmodifiableElement = true, CollectiveSetProperties<E>? properties})
    : super(properties ?? CollectiveSetProperties<E>(), unmodifiableElement: unmodifiableElement, elements: elements);