Failure<T> class
Constructors
- Failure([String? message, Object? error, StackTrace? stackTrace])
-
const
- Failure.from(Failure failure)
Properties
- error → Object?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFailure → bool
-
Available on Result, provided by the ResultExt extension
no setter - isSuccess → bool
-
Available on Result, provided by the ResultExt extension
no setter - message → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
final
Methods
-
dataOrNull<
T> () → T? -
errorOrNull(
) → Object? -
message(
) → String? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stackTraceOrNull(
) → StackTrace? -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited