NoSuchMethodError class - dart:core library (original) (raw)

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

Constructors

NoSuchMethodError.withInvocation(Object? receiver, Invocation invocation)

Creates a NoSuchMethodError corresponding to a failed method call.

factory

Properties

hashCodeint

The hash code for this object.

no setterinherited

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

stackTraceStackTrace?

The stack trace at the point where this error was first thrown.

no setterinherited

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