NoSuchMethodError.withInvocation constructor

NoSuchMethodError.withInvocation(
  1. Object? receiver,
  2. Invocation invocation
)

Creates 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 factory NoSuchMethodError.withInvocation(
    Object? receiver, Invocation invocation);