Failure class final

Represents a failed operation with an error description.

Example:

return Failure('Could not find build.gradle');
Inheritance

Constructors

Failure(String error)
Creates a failed result with the given error description.
const

Properties

error → String
Error message explaining what went wrong.
final
hashCode → int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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