invokeBindingMethod method
dynamic
invokeBindingMethod(
- String method,
- List args
)
override
Implementation
@override
invokeBindingMethod(String method, List args) {
switch (method) {
case 'scroll':
case 'scrollTo':
return scrollTo(
castToType<double>(args[0]),
castToType<double>(args[1])
);
case 'scrollBy':
return scrollBy(
castToType<double>(args[0]),
castToType<double>(args[1])
);
case 'open':
return open(castToType<String>(args[0]));
default: return super.invokeBindingMethod(method, args);
}
}