apply method

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

Applies a function with controlled validation.

Parameters:

  • function: The operation to perform
  • positionalArguments: Positional args
  • namedArguments: Named args

Returns: Sync The result of the operation if validation passes Async A Future that resolves to the result of the operation

Implementation

@override
dynamic apply(Function function, List? positionalArguments, [Map<Symbol, dynamic>? namedArguments]) {
  final cell = _properties.bind;
  if (cell != null) {
    return cell.apply(function, positionalArguments, namedArguments);
  }
}