showLocalNotification method

Future<void> showLocalNotification({
  1. required int id,
})

Implementation

Future<void> showLocalNotification({required int id}) async {
  final platformChannelSpecifics = await _notificationDetails();
  await _localNotifications.show(
    id,
    appName,
    notificationContent,
    platformChannelSpecifics,
    payload: notificationContent,
  );
}