getUnreadCount static method
Returns the total number of unread messages in the message stream.
Implementation
static Future<int> getUnreadCount() async {
return _channel
.invokeMethod<int>('getUnreadCount')
.then<int>((int? value) => value ?? 0);
}