call method
Implementation
@override
Object call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
double dx = 0;
double dy = 0;
if (arguments.length == 2) {
dx = parseDouble(arguments[0]) ?? 0;
dy = parseDouble(arguments[1]) ?? 0;
}
return Offset(dx, dy);
}