apply static method
apply a closure function.
function
- the closure function.params
- the positional + optional parameters.namedArgs
- the optional named arguments.
Implementation
static apply(Function function, List params,
[Map<String, dynamic>? namedArgs])
=> applyByMirror(reflect(function) as ClosureMirror, params, namedArgs);