setForegroundNotificationInfo method

Future<void> setForegroundNotificationInfo({
  1. required String currentDay,
  2. required String currentJalaliDate,
  3. required String currentMiladiDate,
  4. required String currentHijriDate,
})

Implementation

Future<void> setForegroundNotificationInfo({
  required String currentDay,
  required String currentJalaliDate,
  required String currentMiladiDate,
  required String currentHijriDate,
}) async {
  await _channel.invokeMethod("setNotificationInfo", {
    "current_day": currentDay,
    "current_jalali_date": currentJalaliDate,
    "current_miladi_date": currentMiladiDate,
    "current_hijri_date": currentHijriDate,
  });
}