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