scheduleNotification method

void scheduleNotification(
  1. TZDateTime time
)

Implementation

void scheduleNotification(timezone.TZDateTime time) async {
  await FlutterLocalNotificationsPlugin().zonedSchedule(
    _id,
    'Time is up',
    "Proceed to the next step",
    time,
    platformChannelSpecifics,
    androidAllowWhileIdle: true,
    uiLocalNotificationDateInterpretation:
        UILocalNotificationDateInterpretation.absoluteTime,
  );
}