badge property

Future<int> get badge

Gets the badge number on iOS. Badging is not supported for Android.

Implementation

Future<int> get badge async {
  if (!Platform.isIOS) {
    return Future.value(0);
  }
  return await _module.channel.invokeMethod('push#ios#getBadgeNumber');
}