onChatCleared property

Stream get onChatCleared

A stream that emits an event when a chat is cleared or deleted.

This stream listens for chat clear events and provides details such as the JID of the chat and the type of clearance (delete or clear). Use this to update the UI or log chat clearance events.

Usage example:

Mirrorfly.onChatCleared.listen((event) {
  // Handle chat cleared event
  print("Chat cleared: ${event['toJid']} - Type: ${event['chatClearType']}");
});

Implementation

static Stream<dynamic> get onChatCleared =>
    FlyChatFlutterPlatform.instance.onChatCleared;