create<E, I extends Set<E>> static method

CollectiveSet<E> create<E, I extends Set<E>>({
  1. Iterable<E>? elements,
  2. Cell? bind,
  3. ContainerType container = ContainerType.set,
  4. CollectiveReceptor<dynamic, Signal, Signal> receptor = CollectiveReceptor.unchanged,
  5. TestCollective<dynamic, Collective> test = TestCollective.passed,
  6. MapObject? mapObject,
  7. Synapses<Signal, Cell> synapses = Synapses.enabled,
})
override

Creates a fully configured CollectiveSet instance.

Type Parameters:

  • : The specific set type (typically Set<E>)

Parameters:

  • elements: Initial elements
  • bind: Parent Cell for reactivity
  • container: ContainerType configuration
  • receptor: Custom signal handling
  • test: Validation rules
  • map: Element transformations
  • synapses: Link configuration

Implementation

static CollectiveSet<E> create<E, I extends Set<E>>({
  Iterable<E>? elements,
  Cell? bind,
  ContainerType container = ContainerType.set,
  CollectiveReceptor receptor = CollectiveReceptor.unchanged,
  TestCollective test = TestCollective.passed,
  MapObject? mapObject,
  Synapses synapses = Synapses.enabled
}) {
  return _CollectiveSet<E>.fromProperties(CollectiveCellProperties<E,I>(
      bind: bind,
      container: container,
      receptor: receptor,
      test: test,
      mapObject: mapObject,
      synapses: synapses
  ), elements: elements);
}