sendNotification method
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');
}