cancelTaskNotification method

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

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

Implementation

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