CollectiveSet<E> constructor

CollectiveSet<E>(
  1. Iterable<E> elements, {
  2. Cell? bind,
  3. TestCollective<dynamic, Collective> test,
  4. bool identitySet,
})

Creates a CollectiveSet with initial elements.

Parameters:

  • elements: Initial elements to populate the set
  • bind: Optional parent Cell to link with
  • test: Validation rules (defaults to always passing)
  • identitySet: If true, uses identity comparison (default: false)

Implementation

factory CollectiveSet(Iterable<E> elements, {
  Cell? bind,
  TestCollective test,
  bool identitySet
}) = _CollectiveSet<E>;