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 {
  await AwesomeNotifications().createNotification(
    content: NotificationContent(
        id: task.id.hashCode,
        channelKey: 'basic_channel',
        title: task.title,
        body: task.description,
        notificationLayout: NotificationLayout.Default),
  );
  info('$runtimeType - Notification created for $task');
}