CellAsync<C extends Cell> class
Provides asynchronous execution of operations on a Cell.
This wrapper enables:
- Thread-safe operation execution via Dart's
Future
mechanism - Non-blocking cell interactions
- Integration with async/await patterns
Core Capabilities:
- Wraps synchronous Cell] modifiable operations (i.e. add, remove) in futures
- Maintains all validation rules during async execution
- Preserves the cell's reactive behavior
Example Usage:
final cell = Cell();
final asyncCell = cell.async;
// Async operation execution:
asyncCell.apply(someFunction, args).then((result) {
// Handle result
});
// With async/await:
final result = await asyncCell.apply(processData, [input]);
- Implemented types
- Implementers
Constructors
- CellAsync.new(C cell)
-
Creates an async interface for the given cell
const
Properties
-
async
→ CellAsync<
Cell> -
Creates an async variant for modifiable operations
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
-
modifiable
→ Iterable<
Function> -
Returns an iterable containing modifiable functions.
no setteroverride
- 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 setteroverride
- unmodifiable → Cell
-
Creates an unmodifiable view of this cell.
no setteroverride
Methods
-
apply(
Function function, List? positionalArguments, [Map< Symbol, dynamic> ? namedArguments]) → Future -
Asynchronously applies a function through the cell's validation system.
override
-
deputy(
{covariant TestObject< Cell> ? test, covariant MapObject? mapObject}) → Cell -
Creates an Deputy cell from an existing Cell instance with reduced permissions.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override