W3cubDocs

/Dart 2

NoSuchMethodError.withInvocation constructor

NoSuchMethodError.withInvocation(Object receiver, Invocation invocation)

Create a NoSuchMethodError corresponding to a failed method call.

The receiver is the receiver of the method call. That is, the object on which the method was attempted called.

The invocation represents the method call that failed. It should not be null.

Implementation

external NoSuchMethodError.withInvocation(
    Object receiver, Invocation invocation);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/NoSuchMethodError/NoSuchMethodError.withInvocation.html