invokeBindingMethod method

  1. @override
dynamic invokeBindingMethod(
  1. String method,
  2. List args
)
inherited

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);
  }
}