description

# NoSuchMethodError class

Error thrown on an invalid function or method invocation.

Thrown when a dynamic function or method call provides an invalid type argument or argument list to the function being called. For non-dynamic invocations, static type checking prevents such invalid arguments.

Also thrown by the default implementation of Object.noSuchMethod.

Inheritance
  - Object
  - Error
  - NoSuchMethodError

## Constructors

NoSuchMethodError.withInvocation(Object? receiver, Invocation invocation)
  Creates a NoSuchMethodError corresponding to a failed method call.
  factory

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited
stackTrace → StackTrace?
  The stack trace at the point where this error was first thrown.
  no setter inherited

## Methods

noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
toString() → String
  A string representation of this object.
  override

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited