apply method
Asynchronously applies a function through the cell's validation system.
Parameters:
function
: The operation to executepositionalArguments
: List of positional argumentsnamedArguments
: Map of named arguments
Returns a Future that completes with:
- The function result if validation passes
- null if validation fails
Execution flow:
- Validates the operation using cell's rules
- Queues the operation via
Future(() => ...)
- Preserves all reactive connections
Implementation
@override
Future apply(Function function, List? positionalArguments, [Map<Symbol, dynamic>? namedArguments]) async {
return Future(() => _cell.apply(function, positionalArguments, namedArguments));
}