periodicallyShow static method

Future<void> periodicallyShow(
  1. LocalNotificationModel model
)

Implementation

static Future<void> periodicallyShow(LocalNotificationModel model) async {
  if (model.repeatInterval == null) {
    throw Exception("Repeat Interval must provide  to periodic notification");
  }
  final NotificationDetails notificationDetails =
      await NotifiyDetailsCreator.createNotifyDetails(model);
  final RepeatInterval repeatInterval =
      RepeatIntervalGetter.getRepeatInterval(model);

  FlutterLocalNotificationsPlugin().periodicallyShow(
    model.id,
    model.title,
    model.body,
    repeatInterval,
    notificationDetails,
    androidScheduleMode: AndroidScheduleMode.exact,
    payload: model.payload,
  );
}