getUnreadMessagesCount static method

Future<int?> getUnreadMessagesCount()

Retrieves the count of unread messages asynchronously.

This static method asynchronously retrieves the count of unread messages from the Mirrorfly chat.

Returns a Future that completes with an int representing the count of unread messages, or null if an error occurs during the operation.

Example usage:

int? unreadCount = await Mirrorfly.getUnreadMessagesCount();
print('Unread message count: $unreadCount');

Implementation

static Future<int?> getUnreadMessagesCount() {
  return FlyChatFlutterPlatform.instance.getUnreadMessagesCount();
}