isHardDeleted property
bool
get
isHardDeleted
Returns true if the message is in completed hard deleted state.
Implementation
bool get isHardDeleted {
final messageState = this;
if (messageState is! MessageCompleted) return false;
final completedState = messageState.state;
if (completedState is! Deleted) return false;
return completedState.hard;
}