cancelNotificationById static method

Future<void> cancelNotificationById(
  1. String tag,
  2. int id
)

Removes the delivered notification with the provided id.

Implementation

static Future<void> cancelNotificationById(String tag, int id) async {
  await platform.invokeMethod('cancelNotificationById', {
    'id': id,
    'tag': tag,
  });
}