cancelNotification static method

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

Cancel a notification

Implementation

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