createTaskNotification method

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

Create an immediate notification for a task.

Implementation

@override
Future<void> createTaskNotification(UserTask task) async {
  if (task.notification) {
    await FlutterLocalNotificationsPlugin().show(
      task.id.hashCode,
      task.title,
      task.description,
      _platformChannelSpecifics,
      payload: task.id,
    );
    info('$runtimeType - Notification created for $task');
  }
}