invokeBindingMethod method

  1. @override
dynamic invokeBindingMethod(
  1. String method,
  2. 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);
  }
}