invoke method

dynamic invoke(
  1. String funcName, {
  2. String? moduleName,
  3. List positionalArgs = const [],
  4. Map<String, dynamic> namedArgs = const {},
  5. List<HTType> typeArgs = const [],
})

Invoke a top level function defined in a certain namespace in the interpreter.

Implementation

dynamic invoke(String funcName,
        {String? moduleName,
        List<dynamic> positionalArgs = const [],
        Map<String, dynamic> namedArgs = const {},
        List<HTType> typeArgs = const []}) =>
    interpreter.invoke(
      funcName,
      moduleName: moduleName,
      positionalArgs: positionalArgs,
      namedArgs: namedArgs,
      typeArgs: typeArgs,
    );