getUnreadRepliesCount static method

Future<void> getUnreadRepliesCount(
  1. Function function
)

Returns the number of unread messages the user currently has. Use this method to get the number of unread messages the user has, then possibly notify them about it with your own UI. function callback with argument Notifications count, or -1 in case the SDK has not been initialized.

Implementation

static Future<void> getUnreadRepliesCount(Function function) async {
  _channel.setMethodCallHandler(_handleMethod);
  _unreadRepliesCountCallback = function;
  await _channel.invokeMethod<Object>('getUnreadRepliesCount');
}