cancelNotification method

  1. @override
Future<void> cancelNotification(
  1. UserTask task
)
override

Cancel (i.e., remove) the notification for the task.

Implementation

@override
Future<void> cancelNotification(UserTask task) async {
  if (task.notification) {
    await AwesomeNotifications().cancel(task.id.hashCode);
    info('$runtimeType - Notification canceled for $task');
  }
}