sendNotification method

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

Send an immediate notification for a task.

Implementation

@override
Future<void> sendNotification(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');
  }
}