setApplicationIconBadgeNumber method

  1. @override
Future setApplicationIconBadgeNumber(
  1. int batchIconNumber
)
override

Sets batchIconNumber as the batch number for the current icon for the app

Set to 0 (zero) to hide the badge number.

Throws a PlatformException in case an error

Implementation

@override
Future setApplicationIconBadgeNumber(int batchIconNumber) async {
  await methodChannel.invokeMethod('mSetApplicationIconBadgeNumber',
      <String, Object>{'batchIconNumber': batchIconNumber});
}