TissueBase<E, I extends Iterable<E>, C extends Tissue<E>> class abstract

The foundational abstract base implementation of the Tissue interface, providing the core reactive engine and synchronisation domain for all high‑fidelity collections in the cell ecosystem.

TissueBase acts as the primary "Nerve Center" for managing groups of elements within the Conactive data‑flow graph. It bridges the gap between the high‑level Tissue interface and low‑level physical storage (Container), orchestrating the entire lifecycle of reactive members—from initial population and structural validation to recursive pulse propagation.

When to use

This class is used internally by all tissue implementations. You don't need to interact with it directly. It is the foundation that powers TissueList, TissueSet, TissueMap, TissueQueue, and TissueValue.

You never extend this class directly. Instead, you use one of the concrete subtypes like _Tissue (for mutable tissues) or _UnmodifiableTissue (for read‑only views). This class provides the common plumbing for all of them.

How it works

  • It holds a TissueNucleusBase (the "DNA" of the collection) which defines the rules, context, receptor, and storage strategy.
  • It mixes in IterableMixin to provide standard Iterable methods (map, where, fold, etc.) without reimplementing them.
  • On construction, it initialises the physical container via _nucleus.container.init(elements).
  • It automatically links any initial elements that are Cells via _nucleus.synapses.link. This enables "bubbling" of internal changes.
  • The deputy() method returns a proxy that shares the same data but applies a different validation rule or context.
  • Equality (==) and hashCode are based on the container's content, so tissues behave like normal Dart collections in sets and maps.

Type Parameters:

  • E: The type of elements contained within the tissue.
  • I: The internal Iterable implementation type (e.g., List<E>, Set<E>, or Queue<E>) used by the physical Container.
  • C: The specific implementation interface of the Tissue (e.g., TissueList<E>), used for self‑referential type safety in receptors and deputies.

See also:

Inheritance
Implemented types
Mixed-in types
Available extensions

Constructors

TissueBase(TissueNucleusBase<E, I, C> nucleus, {Iterable<E>? elements})
Primary internal constructor for TissueBase, responsible for bootstrapping a reactive collection and establishing its initial state within the Conactive data‑flow graph.

Properties

async → ModifiableAsync<Cell>
Provides a high-level, asynchronous interface for interacting with this Cell node.
no setterinherited
context → Context
The operational Context defining the forensic identity, administrative authority, and causal lineage of this specific Cell handle.
no setterinherited
first → E
The first element.
no setterinherited
firstOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The first element of this iterator, or null if the iterable is empty.
no setter
hashCode → int
Returns the hash code based on the underlying Container.
no setteroverride
id → String
Wire identity. Delegates to the nucleus so deputies and their principal share one id unless a graph registration overrides it.
no setterinherited
indexed → Iterable<(int, T)>

Available on Iterable<T>, provided by the IterableExtensions extension

Pairs of elements of the indices and elements of this iterable.
no setter
isEmpty → bool
Whether this collection has no elements.
no setterinherited
isGoverned → bool
Indicates whether this node is subject to active Administrative Oversight or specialized Lifecycle Governance.
no setterinherited
isInvalidated → bool
Indicates whether this Cell has initiated its Automatic Termination sequence and is currently in the process of being neutralized.
no setterinherited
isNotEmpty → bool
Whether this collection has at least one element.
no setterinherited
isTerminal → bool
A boolean indicator identifying whether this Cell acts as a Processing Sink within the reactive topology.
no setterinherited
iterator → Iterator<E>
Returns an Iterator that allows iterating over the elements of this tissue.
no setteroverride
last → E
The last element.
no setterinherited
lastOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The last element of this iterable, or null if the iterable is empty.
no setter
length → int
The number of elements in this Iterable.
no setterinherited
lock → Lock?
The synchronization Lock resolved from this tissue's nucleus.
no setteroverride
modifiable → Iterable<Function>
Defines the exhaustive whitelist of functions and commands authorized for execution on this node via the dynamic apply method.
no setterinherited
nonNulls → Iterable<T>

Available on Iterable<T?>, provided by the NullableIterableExtensions extension

The non-null elements of this iterable.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
single → E
Checks that this iterable has only one element, and returns that element.
no setterinherited
singleOrNull → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The single element of this iterator, or null.
no setter
skippedReport → Map<String, dynamic>?

Available on Tissue<E>, provided by the TissueSkippedReport extension

The {'wire': [...], 'decode': [...]} skip report, or null when no skip occurred.
no setter
toJSIterable → JSIterable<T>

Available on Iterable<T>, provided by the IterableToJSIterable extension

A JSIterable wrapper that proxies to the Dart iterable API.
no setter
unmodifiable → Tissue<E>
Returns a read‑only, reactive projection (Deputy) of this Tissue.
no setterinherited
validate → TestTissue<dynamic, Tissue>
The TestTissue validation logic currently governing this collection.
no setterinherited
wait → Future<List<T>>

Available on Iterable<Future<T>>, provided by the FutureIterable extension

Waits for futures concurrently.
no setter

Methods

any(bool test(E element)) → bool
Checks whether any element of this iterable satisfies test.
inherited
apply<R>(ApplyCommand command, {ApplyTransactionScope? tx}) → FutureOr<ApplyOutcome<R>>
Submits a first-class ApplyCommand through the tissue dispatch engine.
override
asNameMap() → Map<String, T>

Available on Iterable<T>, provided by the EnumByName extension

Creates a map from the names of enum values to the values.
attach(dynamic context) → Iterable<Pulse>

Available on Iterable<Pulse>, provided by the PulseIterableExtension extension

Returns a new collection of pulses, each with the provided context metadata attached.
batch() → Pulse

Available on Iterable<Pulse>, provided by the PulseIterableExtension extension

Aggregates multiple signals into a single, flat CollectivePulse.
byName(String name) → T

Available on Iterable<T>, provided by the EnumByName extension

Finds the enum value in this list with name name.
cast<R>() → Iterable<R>
A view of this iterable as an iterable of R instances.
inherited
command(Function function) → ApplyCommandRunner

Available on Cell, provided by the ApplyCommandDSL extension

Begins assembling a command that invokes function on this cell.
contains(Object? element) → bool
Whether the collection contains an element equal to element.
inherited
deputy({covariant DeputyContext context = DeputyContext.system, covariant TestTissue<dynamic, Tissue> testRule = TestTissue.allowAll, EphemeralPolicy<Cell>? ephemeralPolicy, Synapses<Pulse, Cell> synapses = Synapses.enabled}) → FutureOr<Tissue<E>>
Synthesizes a specialised Mandate Handle (Deputy) of this collection, providing a scoped, authoritative interface to the underlying state.
override
dispatch(Function function, {List? positionalArguments, Map<Symbol, dynamic>? namedArguments}) → dynamic
The internal mutation dispatch engine, implemented by each tissue mixin.
elementAt(int index) → E
Returns the indexth element.
inherited
elementAtOrNull(int index) → T?

Available on Iterable<T>, provided by the IterableExtensions extension

The element at position index of this iterable, or null.
every(bool test(E element)) → bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> toElements(E element)) → Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
filter<S>({required bool test(S value)}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Materializes a Predicate Integrity Gate—a specialized orchestration instruction designed to conditionally permit pulse evolution.
firstWhere(bool test(E element), {E orElse()?}) → E
The first element that satisfies the given predicate test.
inherited
flatten() → Iterable<Pulse>

Available on Iterable<Pulse>, provided by the PulseIterableExtension extension

Recursively flattens any nested CollectivePulse structures into a sequence of simple pulses.
fold<T>(T initialValue, T combine(T previousValue, E element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<E> other) → Iterable<E>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(E element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
fromFuture<S>({required Future<S> future, Duration? timeout, FutureErrorHandler? onError, bool emitErrorPulse = true}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Synthesizes a Temporal Resource Bridge from a Future.
fromIterable<T>({required Iterable<T> iterable}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Synthesizes an Iterative Pulse Bridge from a dynamic iterable.
fromStream<S>({required Stream<S> stream, StreamErrorHandler? onError, bool emitErrorPulse = true}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Synthesizes a Continuous Pulse Bridge from a Stream.
join([String separator = ""]) → String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool test(E element), {E orElse()?}) → E
The last element that satisfies the given predicate test.
inherited
map<S, T>({required T project(S value), MapErrorHandler? onError}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Materializes a Projective Evolution Gate—a fundamental instruction designed to transform stimulus payloads as they traverse the topography.
map<T>(T toElement(E e)) → Iterable<T>
The current elements of this iterable modified by toElement.
inherited
mapEach<T>(T mapper(dynamic payload)) → Iterable<Pulse<T>>

Available on Iterable<Pulse>, provided by the PulseIterableExtension extension

Transforms the payload of every pulse in the collection while preserving their individual causal traces.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of<T>({required Iterable<T> values}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Synthesizes a Fixed Sequence Bridge from a provided collection.
range({required int start, required int count, int step = 1}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Synthesizes a Counted Pulse Generator—a specialized bridge designed to evolve a sequence of arithmetic integers.
reduce(E combine(E value, E element)) → E
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
repeat<T>({required T value, int count = 1}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Synthesizes a Recursive Stimulus Bridge—a specialized generator designed to evolve the same payload multiple times.
singleWhere(bool test(E element), {E orElse()?}) → E
The single element that satisfies test.
inherited
skip(int count) → Iterable<E>
Creates an Iterable that provides all but the first count elements.
inherited
skipWhile(bool test(E element)) → Iterable<E>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
take(int count) → Iterable<E>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeWhile(bool test(E element)) → Iterable<E>
Creates a lazy iterable of the leading elements satisfying test.
inherited
tap<S>({required void onValue(S value), TapErrorHandler? onError}) → FlowHandle

Available on Cell, provided by the CellFlowOperators extension

Materializes a Passive Observation Gate—a specialized orchestration instruction designed to perform side-effects without altering pulse evolution.
toList({bool growable = true}) → List<E>
Creates a List containing the elements of this Iterable.
inherited
toSet() → Set<E>
Creates a Set containing the same elements as this iterable.
inherited
toString() → String
Returns a string representation of the underlying collection.
override
where(bool test(E element)) → Iterable<E>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() → Iterable<R>
Creates a new lazy Iterable with all elements that have type T.
inherited
withStep(String step) → Iterable<Pulse>

Available on Iterable<Pulse>, provided by the PulseIterableExtension extension

Appends a diagnostic stage to the causal trace of every pulse in this collection.

Operators

operator ==(Object other) → bool
Provides structural equality for tissues.
override