MissingCapabilityMethodImplementation class final
An Exception thrown when a required method implementation is missing from a class that uses a particular mixin.
For example, if a mixin declares a method as required but a class with that mixin does not provide an implementation, this exception can be thrown to indicate the specific method and mixin where the implementation is missing.
The exception message will include the method name and the mixin name for easier debugging.
Example usage:
throw MissingMethodImplementation('someMethod', 'SomeMixin');
- Implemented types
Constructors
- MissingCapabilityMethodImplementation(String methodName, String mixinName)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodName → String
-
final
- mixinName → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
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