title: How to Work zonedSchedule local notifications in flutter
body: <p><strong>Set to the notification</strong></p>
  <p><strong>Used to the Flutter Local Notification Packages</strong></p>
  <p><a href="https://pub.dev/packages/flutter_local_notifications" rel="nofollow noreferrer">https://pub.dev/packages/flutter_local_notifications</a></p>
  <p><strong>I want to set same notification multiple time</strong></p>
  <pre><code>DateTime current = 2020-12-15 21:00:00.000;
  
  NotificationUtils.showNotification1(
      time: current.subtract(Duration(days: 3)),
      );
  NotificationUtils.showNotification1(
      time: current.subtract(Duration(hours: 24)),
      );
  NotificationUtils.showNotification1(
      time: current.subtract(Duration(hours: 2)),
      );
  NotificationUtils.showNotification1(
      time: current.subtract(Duration(minutes: 30)),
     );
  NotificationUtils.showNotification1(
      time: current,
      );
  </code></pre>
  <p><strong>Local Notification Function</strong></p>
  <pre><code>class NotificationUtils {
  static FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin;
  
  static void configLocalNotification() {
    var androidInitilize = AndroidInitializationSettings('appstore');
    var iOSinitilize = IOSInitializationSettings();
    var initilizationsSettings = new InitializationSettings(android: androidInitilize, 
        iOS:iOSinitilize);
    flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
    flutterLocalNotificationsPlugin.initialize(initilizationsSettings,onSelectNotification: (String 
       payload) async {});
           }  
  
  static Future showNotification1({DateTime time}) async {
  
  var androidDetails = new AndroidNotificationDetails(
    &quot;notification 1&quot;,
    &quot;App Notification 1&quot;,
    &quot;Notification 1&quot;,
    importance: Importance.max,
    priority: Priority.high,
    color: Colors.blue,
    playSound: true,
    // timeoutAfter: 5000,
  );
  var iSODetails = new IOSNotificationDetails();
  var generalNotificationDetails =
      new NotificationDetails(android: androidDetails, iOS: iSODetails);
  
  await flutterLocalNotificationsPlugin.zonedSchedule(
    0,
    &quot;App&quot;,
    &quot;Notification&quot;,
    time,
    generalNotificationDetails,
    androidAllowWhileIdle: true,
  );}
  static Future&lt;void&gt; cancelNotification() async {
   await flutterLocalNotificationsPlugin.cancel(1);}}
  </code></pre>