method dispatchMethod


  1. override
dynamic dispatchMethod(obj, method, args)

Calls methodOrCallback with args if it is a closure, otherwise, treat it as a method name in object, and invoke it.

Source

@override
dispatchMethod(obj, method, args) {
  // Dart note: make sure we dispatch to the model, not ourselves.
  if (identical(obj, this)) obj = model;
  return super.dispatchMethod(obj, method, args);
}