Failure<T> class

Implemented types
Available extensions

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?

Available on Result, provided by the ResultExt extension

errorOrNull() Object?

Available on Result, provided by the ResultExt extension

message() String?

Available on Result, provided by the ResultExt extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stackTraceOrNull() StackTrace?

Available on Result, provided by the ResultExt extension

toString() String
A string representation of this object.
override

Operators

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