showGenericNotification method

Future<void> showGenericNotification({
  1. required int id,
  2. required String title,
  3. required String body,
})

Implementation

Future<void> showGenericNotification({
  required int id,
  required String title,
  required String body,
}) async {
  var androidDetails = AndroidNotificationDetails(
    'UpdateCenter',
    'Update Center',
    channelShowBadge: true,
    importance: Importance.high,
    priority: Priority.high,
    onlyAlertOnce: true,
  );
  await showNotification(id: id, title: title, body: body, details: NotificationDetails(android: androidDetails));
}