isHardDeleting property

bool isHardDeleting

Returns true if the message is in outgoing hard deleting state.

Implementation

bool get isHardDeleting {
  final messageState = this;
  if (messageState is! MessageOutgoing) return false;

  final outgoingState = messageState.state;
  if (outgoingState is! Deleting) return false;

  return outgoingState.hard;
}