clearBadge method

  1. @override
Future<void> clearBadge({
  1. bool removeNotifications = false,
})
override

Clears the app icon badge.

When removeNotifications is true, notifications are also removed from the notification center.

Implementation

@override
Future<void> clearBadge({bool removeNotifications = false}) async {
  await methodChannel.invokeMethod<void>(
      'clearBadge', {'removeNotifications': removeNotifications});
}