create<E, I extends Iterable<E> > static method
Collective<E>
create<E, I extends Iterable<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
Creates an unmodifiable collective with properties
Implementation
static Collective<E> create<E, I extends Iterable<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 _UnmodifiableCollective<E>(
properties: CollectiveCellProperties<E,I>(bind: bind, container: container, test: test, receptor: receptor, synapses: synapses),
unmodifiableElement: unmodifiableElement,
elements: elements
);
}