OpenCellSync<C extends Cell, L extends Cell, I extends Signal, O extends Signal> class

A specialized Cell that provides open receptor and synapse binding

This class extends CellSync to provide:

  • Open receptor for signal processing
  • Synapse management for linking
  • Deputy creation for modified validation

Example Usage:

final openCell = OpenCellSync(
 receptor: Receptor.unchanged,
 bind: parentCell,
 synapses: Synapses.enabled
 );
// Create a deputy cell
final deputy = openCell.deputy(
test: TestObject.passed,
mapObject: MapObject.from(openCell)
);
// Apply a function
final result = openCell.apply(someFunction, [arg1, arg2]);
Inheritance
Implemented types
Mixed-in types

Constructors

OpenCellSync.new({Receptor<C, I, O>? receptor, Cell? bind, Synapses<Signal, Cell> synapses = Synapses.enabled})
Creates a new OpenCellSync with open receptor and synapse binding

Properties

async OpenCellAsync<C, L, I, O>
Creates an async variant for modifiable operations
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
modifiable Iterable<Function>
Returns an iterable containing modifiable functions.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
test TestObject<Cell>
Gets the test object associated with the cell.
no setterinherited
unmodifiable Cell
Creates an unmodifiable view of this cell.
no setterinherited

Methods

apply(Function function, List? positionalArguments, [Map<Symbol, dynamic>? namedArguments]) → dynamic
Applies a function with controlled validation.
inherited
deputy({covariant TestObject<Cell>? test, covariant MapObject? mapObject}) OpenCell<C, L, I, O>
Creates an Deputy cell from an existing Cell instance with reduced permissions.
override
Links another cell to this one
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
receptor(I signal) → O?
Processes an incoming signal
inherited
toString() String
A string representation of this object.
inherited
Unlinks a previously linked cell
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited