create<E, I extends Set<E> > static method
CollectiveSet<E>
create<E, I extends Set<E> >({
- Iterable<
E> ? elements, - bool unmodifiableElement = true,
- Cell? bind,
- ContainerType? container,
- CollectiveReceptor<
dynamic, Signal, Signal> receptor = CollectiveReceptor.unchanged, - TestCollective<
dynamic, Collective> test = TestCollective.passed, - MapObject? mapObject,
- Synapses<
Signal, Cell> synapses = Synapses.enabled,
override
Factory constructor for full configuration.
Parameters match CollectiveSet.create with unmodifiable flag
Implementation
static CollectiveSet<E> create<E, I extends Set<E>>({
Iterable<E>? elements,
bool unmodifiableElement = true,
Cell? bind,
ContainerType? container,
CollectiveReceptor receptor = CollectiveReceptor.unchanged,
TestCollective test = TestCollective.passed,
MapObject? mapObject,
Synapses synapses = Synapses.enabled
}) {
return UnmodifiableCollectiveSet<E>.fromProperties(
CollectiveCellProperties<E,I>(bind: bind, container: container, test: test, receptor: receptor, synapses: synapses),
unmodifiableElement: unmodifiableElement,
elements: elements
);
}