invoke static method
dynamic
invoke(
- dynamic instance,
- MethodMirror method,
- List params, [
- Map<
String, dynamic> ? namedArgs,
Invoke a method of the specified instance.
instance
- the object instance.method
- the methodparams
- the positional + optional parameters.namedArgs
- the optional named arguments. Ignored if the method is a getter or setter.
Implementation
static invoke(instance, MethodMirror method, List params,
[Map<String, dynamic>? namedArgs])
=> invokeByMirror(reflect(instance), method, params, namedArgs);