create<E, I extends List<E> > static method
CollectiveList<E>
create<E, I extends List<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 method to create an unmodifiable list with full configuration.
Parameters:
- elements: Initial elements
- unmodifiableElement: Make elements unmodifiable (default true)
- bind: Cell to bind to
- container: Container type configuration
- receptor: Signal receptor configuration
- test: Test configuration
- map: Mapping configuration
- synapses: Synapses configuration
Implementation
static CollectiveList<E> create<E, I extends List<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 UnmodifiableCollectiveList<E>.fromProperties(
CollectiveCellProperties<E,I>(bind: bind, container: container, test: test, receptor: receptor, synapses: synapses),
unmodifiableElement: unmodifiableElement,
elements: elements
);
}