TissueQueueMixin<E, C extends TissueQueue<E> > mixin
A mixin that provides queue operations for TissueBase implementations.
This mixin implements the Queue interface and adds reactive capabilities to standard queue operations. All modifications to the queue are validated through the tissue's test rules before being applied, and changes are propagated through the receptor system.
When to use
Only if you are building a custom queue implementation that needs to reuse the standard Queue logic.
This mixin is used internally by TissueQueueBase and
UnmodifiableTissueQueueBase. You don't interact with it directly – it
provides the Queue API for tissues.
How it works
- It requires the host class to provide
_nucleus(aTissueQueueNucleusBase) andvalidate(aTestTissue). - It implements all Queue methods (
add,addFirst,removeLast,clear, etc.) by routing them through theapplygateway. - The
applymethod validates the action and then calls the appropriate private_method (e.g.,_add,_addFirst) which updates the container and emits the correspondingTissueEvent. - The mixin also defines the
modifiableset, which includes all mutation functions that can be invoked viaapply.
- Superclass constraints
- TissueBase<
E, Queue< E> , C>
- TissueBase<
- Implemented types
-
- TissueQueue<
E>
- TissueQueue<
- Available extensions
Properties
-
async
→ ModifiableQueueAsync<
E> -
Creates an async variant for modifiable operations
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<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - hashCode → int
-
Returns the hash code based on the underlying Container.
no setterinherited
- 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<
Pairs of elements of the indices and elements of this iterable.T> , provided by the IterableExtensions extensionno 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 setterinherited
- last → E
-
The last element.
no setterinherited
- lastOrNull → T?
-
Available on Iterable<
The last element of this iterable, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - length → int
-
The number of elements in this Iterable.
no setteroverride
- lock → Lock?
-
The synchronization Lock resolved from this tissue's nucleus.
no setterinherited
-
modifiable
→ Iterable<
Function> -
Defines the exhaustive whitelist of functions and commands authorized for
execution on this node via the dynamic apply method.
no setteroverride
-
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnullelements 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<
The single element of this iterator, orT> , provided by the IterableExtensions extensionnull.no setter -
skippedReport
→ Map<
String, dynamic> ? -
Available on Tissue<
TheE> , provided by the TissueSkippedReport extension{'wire': [...], 'decode': [...]}skip report, ornullwhen no skip occurred.no setter -
toJSIterable
→ JSIterable<
T> -
Available on Iterable<
A JSIterable wrapper that proxies to the Dart iterable API.T> , provided by the IterableToJSIterable extensionno setter -
unmodifiable
→ TissueQueue<
E> -
Returns a read‑only, reactive projection (Deputy) of this TissueQueue.
no setterinherited
-
validate
→ TestTissue<
dynamic, Tissue> -
The TestTissue validation logic currently governing this collection.
no setterinherited
-
wait
→ Future<
List< T> > -
Available on Iterable<
Waits for futures concurrently.Future< , provided by the FutureIterable extensionT> >no setter
Methods
-
add(
E value) → void -
Adds value at the end of the queue.
override
-
addAll(
Iterable< E> iterable) → void -
Adds all values
iterableat the end of the queue.override -
addFirst(
E value) → void -
Adds value at the beginning of the queue.
override
-
addLast(
E value) → void -
Adds value at the end of the queue.
override
-
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.
inherited
-
asNameMap(
) → Map< String, T> -
Available on Iterable<
Creates a map from the names of enum values to the values.T> , provided by the EnumByName extension -
attach(
dynamic context) → Iterable< Pulse> -
Available on Iterable<
Returns a new collection of pulses, each with the providedPulse> , provided by the PulseIterableExtension extensioncontextmetadata attached. -
batch(
) → Pulse -
Available on Iterable<
Aggregates multiple signals into a single, flat CollectivePulse.Pulse> , provided by the PulseIterableExtension extension -
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname. -
cast<
R> () → Queue< R> -
A view of this iterable as an iterable of
Rinstances.override -
clear(
) → void -
Clears the queue.
override
-
command(
Function function) → ApplyCommandRunner -
Available on Cell, provided by the ApplyCommandDSL extension
Begins assembling a command that invokesfunctionon 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<TissueQueue< E> > -
Creates a delegated view (deputy) of this queue with specialised behavioural,
security, and validation logic.
inherited
-
dispatch(
Function function, {List? positionalArguments, Map< Symbol, dynamic> ? namedArguments, bool sync = false}) → dynamic -
The internal mutation dispatch engine, implemented by each tissue mixin.
override
-
elementAt(
int index) → E -
Returns the
indexth element.inherited -
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindexof this iterable, ornull. -
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<
Recursively flattens any nested CollectivePulse structures into a sequence of simple pulses.Pulse> , provided by the PulseIterableExtension extension -
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 value)) → void -
Invokes
actionon 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<
T> (T toElement(E e)) → Iterable< T> -
The current elements of this iterable modified by
toElement.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. -
mapEach<
T> (T mapper(dynamic payload)) → Iterable< Pulse< T> > -
Available on Iterable<
Transforms the payload of every pulse in the collection while preserving their individual causal traces.Pulse> , provided by the PulseIterableExtension extension -
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
-
remove(
Object? object) → bool -
Removes the first occurrence of
valuefrom the queue.override -
removeFirst(
) → E -
Removes the first element from the queue.
override
-
removeLast(
) → E -
Removes the last element from the queue.
override
-
removeWhere(
bool test(E element)) → void -
Removes all elements that satisfy the
testcondition.override -
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. -
retainWhere(
bool test(E element)) → void -
Retains all elements that satisfy the
testcondition.override -
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
countelements.inherited -
skipWhile(
bool test(E element)) → Iterable< E> -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
take(
int count) → Iterable< E> -
Creates a lazy iterable of the
countfirst 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. -
toJson(
{bool lenient = false, TestTissue< dynamic, Tissue> lenientFallbackTestRule = TestTissue.readOnly}) → Map<String, dynamic> -
Available on TissueQueue<
Encodes this queue to its canonical JSON wire form.E> , provided by the TissueQueueJson extension -
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.
inherited
-
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<
Appends a diagnostic stage to the causal trace of every pulse in this collection.Pulse> , provided by the PulseIterableExtension extension
Operators
-
operator ==(
Object other) → bool -
Provides structural equality for tissues.
inherited