getUnreadCount method

  1. @override
Future<int?> getUnreadCount()
override

Gets the unread count.

This method invokes the getUnreadCount method on the native platform and returns the result as an int.

Returns a Future that completes with the unread count, or null if the count is not available.

Implementation

@override
Future<int?> getUnreadCount() {
  return methodChannel.invokeMethod<int>('getUnreadCount');
}