# InvokeMethodCreator typedef

InvokeMethodCreator = Object? Function(Object instance, String method, List<Object?> args, Map<String, Object?> namedArgs)

Typedef for a function that invokes a method on an instance of type `Object`.

- `instance`: The target instance of `Object`.
- `method`: The name of the method to invoke.
- `args`: Positional arguments.
- `namedArgs`: Named arguments.

Returns the result of the method, or `null` if the method returns `void`.

## Implementation

    typedef InvokeMethodCreator = Object? Function(Object instance, String method, List<Object?> args, Map<String, Object?> namedArgs);