setApplicationIconBadgeNumber static method

Future setApplicationIconBadgeNumber(
  1. int batchIconNumber
)

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

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