invoke method
dynamic
invoke(})
Call a member function of this HTInstance.
Implementation
dynamic invoke(String funcName,
{List<dynamic> positionalArgs = const [],
Map<String, dynamic> namedArgs = const {},
List<HTType> typeArgs = const []}) {
try {
HTFunction func = memberGet(funcName);
func.resolve();
return func.call(
positionalArgs: positionalArgs,
namedArgs: namedArgs,
typeArgs: typeArgs);
} catch (error, stackTrace) {
if (interpreter.config.processError) {
interpreter.processError(error, stackTrace);
} else {
rethrow;
}
}
}