ResendFailure<S> class final

Class representing a failed Resend API request result

Inheritance

Constructors

ResendFailure.new(ResendError? error, String? message)
Constructor for ResendFailure
const
ResendFailure.fromJson(Json json)
Factory constructor to create a failure result from a status code and JSON response
factory

Properties

error → ResendError?
The ResendError of the failure
final
hashCode int
The hash code for this object.
no setterinherited
isFailure bool
Getter to check if the result is a failure
no setteroverride
isSuccess bool
Getter to check if the result is a success
no setteroverride
message String?
The message of the failure, if any
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fold<R>({required FutureOr<R> onSuccess(S value), required FutureOr<R> onFailure(ResendError? error, String? message)}) FutureOr<R>
Method to handle both success and failure cases
inherited
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