getUnreadCount method

Future<int> getUnreadCount()

Fetch unread messages count from the SDK.

This method returns the number of unread messages for the current user. Useful for showing badges or notifications.

Returns the number of unread messages, or 0 if none or if an error occurred.

Implementation

Future<int> getUnreadCount() {
  throw UnimplementedError('getUnreadCount() has not been implemented.');
}