resolve method

void resolve()

Marks the message as resolved and performs cleanup.

This method:

  • Sets the resolved flag to true
  • Removes the message from the global waiting messages map
  • Notifies listeners of the state change
  • Decrements the global waiting message counter

Implementation

void resolve() {
  resolved = true;
  waitingMessageById.remove(id);
  notifyListeners();
  _waitingMessageCount--;
}