call method
Implementation
@override
Object? call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
if (arguments.isEmpty) {
throw "callback is required";
}
callback(d) {
(arguments.first as LoxFunction).call(interpreter, [d], {});
return;
}
WidgetsBinding.instance.addPostFrameCallback(callback);
return null;
}