# invoke abstract method

dynamic invoke(

1. Object? instance, [
2. Map<String, dynamic>? arguments,
3. List args = const []

])

Invokes the method on an instance with named arguments.

Parameters:

- `instance`: The object instance (null for static methods)
- `arguments`: Optional named arguments

Returns:

- The method's return value
- May return `null` for void methods

Throws:

- InvalidArgumentException if arguments don't match parameters
- `NoSuchMethodException` for invalid invocations

Example:

    final result = method.invoke(instance, {'param1': value});

    final result = method.invokeWithArgs(instance, null, [arg1, arg2]);

## Implementation

    dynamic invoke(Object? instance, [Map<String, dynamic>? arguments, List<dynamic> args = const []]);