getUnReadNotificationCount method

Future<int?> getUnReadNotificationCount()

Implementation

Future<int?> getUnReadNotificationCount() async {
  int? unReadNotificationCount = 0;
  try {
    if (!kIsWeb) {
      unReadNotificationCount =
          await RefluttersdkPlatform.instance.getUnReadNotificationCount();
    }
  } catch (e) {
    debugPrint("$e");
  }
  return unReadNotificationCount;
}