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.
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.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- stackTrace → StackTrace?
-
The stack trace at the point where this error was first thrown.
read-onlyinherited
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