invoke function
Invokes the callable with the provided args.
Mimics C++ std::invoke.
Implementation
dynamic invoke(
Function callable, {
List<dynamic> positional = const [],
Map<Symbol, dynamic> named = const {},
}) {
return Function.apply(callable, positional, named);
}