cancelNotifications static method
dynamic
cancelNotifications()
Implementation
static cancelNotifications() async {
LogMessage.d("cancelNotification", "All");
secureNotificationChannelId = 0;
flutterLocalNotificationsPlugin.cancelAll();
var barNotifications =
await flutterLocalNotificationsPlugin.getActiveNotifications();
for (var y in barNotifications) {
flutterLocalNotificationsPlugin.cancel(y.id!);
}
}