FailedState class
Represents the failed state of a message.
- Annotations
-
- @freezed
Constructors
- FailedState.deletingFailed({@Default(false) bool hard})
-
Deleting failed state when the message fails to be deleted.
constfactory
-
FailedState.fromJson(Map<
String, dynamic> json) -
Creates a new instance from a json
factory
- FailedState.sendingFailed()
-
Sending failed state when the message fails to be sent.
constfactory
- FailedState.updatingFailed()
-
Updating failed state when the message fails to be updated.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult sendingFailed(SendingFailed value), required TResult updatingFailed(UpdatingFailed value), required TResult deletingFailed(DeletingFailed value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? sendingFailed(SendingFailed value)?, TResult? updatingFailed(UpdatingFailed value)?, TResult? deletingFailed(DeletingFailed value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult sendingFailed(SendingFailed value)?, TResult updatingFailed(UpdatingFailed value)?, TResult deletingFailed(DeletingFailed value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult sendingFailed()?, TResult updatingFailed()?, TResult deletingFailed(bool hard)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this FailedState to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult sendingFailed(), required TResult updatingFailed(), required TResult deletingFailed(bool hard)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? sendingFailed()?, TResult? updatingFailed()?, TResult? deletingFailed(bool hard)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited