NoSuchMethodError class
Error thrown by the default implementation of noSuchMethod on Object.
class NoSuchMethodError implements Error {
final Object _receiver;
final String _memberName;
final List _arguments;
final Map<String,dynamic> _namedArguments;
final List _existingArgumentNames;
/**
* Create a [NoSuchMethodError] corresponding to a failed method call.
*
* The first parameter to this constructor is the receiver of the method call.
* That is, the object on which the method was attempted called.
* The second parameter is the name of the called method or accessor.
* The third parameter is a list of the positional arguments that the method
* was called with.
* The fourth parameter is a map from [String] names to the values of named
* arguments that the method was called with.
* The optional [exisitingArgumentNames] is the expected parameters of a
* method with the same name on the receiver, if available. This is
* the method that would have been called if the parameters had matched.
*/
const NoSuchMethodError(Object this._receiver,
String this._memberName,
List this._arguments,
Map<String,dynamic> this._namedArguments,
[List existingArgumentNames = null])
: this._existingArgumentNames = existingArgumentNames;
external String toString();
}
Implements
Constructors
const NoSuchMethodError(Object _receiver, String _memberName, List _arguments, Map<String, dynamic> _namedArguments, [List existingArgumentNames = null]) #
Create a NoSuchMethodError corresponding to a failed method call.
The first parameter to this constructor is the receiver of the method call.
That is, the object on which the method was attempted called.
The second parameter is the name of the called method or accessor.
The third parameter is a list of the positional arguments that the method
was called with.
The fourth parameter is a map from String names to the values of named
arguments that the method was called with.
The optional exisitingArgumentNames is the expected parameters of a
method with the same name on the receiver, if available. This is
the method that would have been called if the parameters had matched.
const NoSuchMethodError(Object this._receiver,
String this._memberName,
List this._arguments,
Map<String,dynamic> this._namedArguments,
[List existingArgumentNames = null])
: this._existingArgumentNames = existingArgumentNames;