cancelNotification static method

Future<void> cancelNotification(
  1. int id, {
  2. String? tag,
})

Cancels a notification with the given id.

Implementation

static Future<void> cancelNotification(int id, {String? tag}) async {
  await Nylo.localNotifications((flutterLocalNotificationsPlugin) async {
    await flutterLocalNotificationsPlugin.cancel(id: id, tag: tag);
  });
}