NotificationCalendar.fromDate constructor
NotificationCalendar.fromDate({})
Initializes a NotificationCalendar from a DateTime object.
Implementation
NotificationCalendar.fromDate(
{required DateTime date,
super.allowWhileIdle,
super.repeats,
super.preciseAlarm})
: super(
timeZone: date.isUtc
? AwesomeNotifications.utcTimeZoneIdentifier
: AwesomeNotifications.localTimeZoneIdentifier) {
year = date.year;
month = date.month;
day = date.day;
hour = date.hour;
minute = date.minute;
second = date.second;
}