apply method

  1. @override
Future apply(
  1. Function function,
  2. List? positionalArguments, [
  3. Map<Symbol, dynamic>? namedArguments
])
override

Asynchronously applies a function through the cell's validation system.

Parameters:

  • function: The operation to execute
  • positionalArguments: List of positional arguments
  • namedArguments: Map of named arguments

Returns a Future that completes with:

  • The function result if validation passes
  • null if validation fails

Execution flow:

  1. Validates the operation using cell's rules
  2. Queues the operation via Future(() => ...)
  3. Preserves all reactive connections

Implementation

@override
Future apply(Function function, List? positionalArguments, [Map<Symbol, dynamic>? namedArguments]) async {
  return Future(() => _cell.apply(function, positionalArguments, namedArguments));
}