Calls methodOrCallback
with args
if it is a closure, otherwise, treat
it as a method name in object
, and invoke it.
@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);
}