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