MethodCallable.init constructor

MethodCallable.init(
  1. InstanceMirror instance,
  2. MethodMirror _callable, {
  3. bool catchError = false,
})

Implementation

MethodCallable.init(this.instance, this._callable,
    {this.catchError = false}) {
  _callable.parameters.forEach((p) {
    final name = MirrorSystem.getName(p.simpleName);
    final type = MirrorSystem.getName(p.type.simpleName);
    arguments.add(new Argument(name, p.simpleName, type, p.type.simpleName));
  });
}