getTotalUnreadMessageCount static method

Future<int> getTotalUnreadMessageCount(
  1. [GroupChannelTotalUnreadMessageCountParams? params]
)

Gets the total number of unread message of GroupChannels with GroupChannelTotalUnreadMessageCountParams filter.

Implementation

static Future<int> getTotalUnreadMessageCount(
    [GroupChannelTotalUnreadMessageCountParams? params]) async {
  final result = await _instance._chat.getTotalUnreadMessageCount(params);
  sbLog.i(StackTrace.current, 'return: $result');
  return result.groupChannelUnreadMessageCount;
}