NotificationCalendar.fromDate constructor
NotificationCalendar.fromDate({})
Initialize a notification schedule calendar based on a date object
Implementation
NotificationCalendar.fromDate(
{required DateTime date,
bool allowWhileIdle = false,
bool repeats = false,
bool preciseAlarm = false})
: super(
timeZone: date.isUtc
? LocalNotifications.utcTimeZoneIdentifier
: LocalNotifications.localTimeZoneIdentifier,
allowWhileIdle: allowWhileIdle,
repeats: repeats,
preciseAlarm: preciseAlarm) {
year = date.year;
month = date.month;
day = date.day;
hour = date.hour;
minute = date.minute;
second = date.second;
}