CompletedState class

Represents the completed state of a message.

Implementers
Annotations
  • @freezed

Constructors

CompletedState.deleted({@Default(false) bool hard})
Deleted state when the message has been successfully deleted.
const
factory
CompletedState.fromJson(Map<String, dynamic> json)
Creates a new instance from a json
factory
CompletedState.sent()
Sent state when the message has been successfully sent.
const
factory
CompletedState.updated()
Updated state when the message has been successfully updated.
const
factory

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 sent(Sent value), required TResult updated(Updated value), required TResult deleted(Deleted value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? sent(Sent value)?, TResult? updated(Updated value)?, TResult? deleted(Deleted value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult sent(Sent value)?, TResult updated(Updated value)?, TResult deleted(Deleted value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult sent()?, TResult updated()?, TResult deleted(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>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult sent(), required TResult updated(), required TResult deleted(bool hard)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? sent()?, TResult? updated()?, TResult? deleted(bool hard)?}) → TResult?
inherited

Operators

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