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

A specialized CellDeputy that maintains open receptor and linking capabilities while adding layered behavior to an OpenCell.

Combines the functionality of:

Key Features:

  • Preserves all open cell capabilities (reception/linking)
  • Applies stacked validation/mapping rules
  • Provides type-safe signal transformation
  • Maintains unmodifiable views when requested

Example Usage:

final openCell = OpenCell<MyCell, MyLink, InputSig, OutputSig>(...);

// Create validated deputy
final validated = OpenCellDeputy<MyCell, MyLink, InputSig, OutputSig>(
  bind: openCell,
  test: TestObject(...)
);

// Still maintains open capabilities:
final result = processed.receptor(input);
processed.link(otherCell);
Inheritance
Implemented types
Mixed-in types

Constructors

OpenCellDeputy.new({required Cell bind, TestObject<Cell>? test, MapObject? mapObject})
Creates an deputy for an OpenCell with additional behavior layers or reduced accesses to bind cell.

Properties

async OpenCellAsync<C, L, I, O>
Provides asynchronous access while maintaining open capabilities.
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 a new deputy layer while preserving open cell typing.
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