schedule method

  1. @Deprecated('Deprecated due to problems with time zones. Use zonedSchedule ' 'instead.')
int schedule(
  1. TZDateTime? schedule, {
  2. int? id,
  3. String? title,
  4. String? body,
  5. String? payload,
  6. bool? androidAllowWhileIdle,
  7. UILocalNotificationDateInterpretation? uiLocalNotificationDateInterpretation,
  8. DateTimeComponents? matchDateTimeComponents,
  9. String? icon,
  10. Importance? importance,
  11. Priority? priority,
  12. StyleInformation? styleInformation,
  13. bool? playSound,
  14. AndroidNotificationSound? sound,
  15. bool? enableVibration,
  16. List<int>? vibrationPattern,
  17. String? groupKey,
  18. bool? setAsGroupSummary,
  19. GroupAlertBehavior? groupAlertBehavior,
  20. bool? autoCancel,
  21. bool? ongoing,
  22. Color? color,
  23. AndroidBitmap<Object>? largeIcon,
  24. bool? onlyAlertOnce,
  25. bool? showWhen,
  26. int? when,
  27. bool? channelShowBadge,
  28. bool? showProgress,
  29. int? maxProgress,
  30. int? progress,
  31. bool? indeterminate,
  32. AndroidNotificationChannelAction? channelAction,
  33. bool? enableLights,
  34. Color? ledColor,
  35. int? ledOnMs,
  36. int? ledOffMs,
  37. String? ticker,
  38. NotificationVisibility? visibility,
  39. int? timeoutAfter,
  40. String? category,
  41. bool? fullScreenIntent,
  42. String? shortcutId,
  43. Int32List? additionalFlags,
  44. String? subText,
  45. String? tag,
  46. bool? presentAlert,
  47. bool? presentSound,
  48. bool? presentBadge,
  49. String? soundFile,
  50. int? badgeNumber,
  51. List<IOSNotificationAttachment>? attachments,
  52. List<MacOSNotificationAttachment>? macAttachments,
  53. String? subtitle,
  54. String? threadIdentifier,
})

To display a scheduled Notification.

Implementation

@Deprecated('Deprecated due to problems with time zones. Use zonedSchedule '
    'instead.')
int schedule(
  TZDateTime? schedule, {
  int? id,
  String? title,
  String? body,
  String? payload,
  bool? androidAllowWhileIdle,
  UILocalNotificationDateInterpretation?
      uiLocalNotificationDateInterpretation,
  DateTimeComponents? matchDateTimeComponents,
  String? icon,
  Importance? importance,
  Priority? priority,
  StyleInformation? styleInformation,
  bool? playSound,
  AndroidNotificationSound? sound,
  bool? enableVibration,
  List<int>? vibrationPattern,
  String? groupKey,
  bool? setAsGroupSummary,
  GroupAlertBehavior? groupAlertBehavior,
  bool? autoCancel,
  bool? ongoing,
  Color? color,
  AndroidBitmap<Object>? largeIcon,
  bool? onlyAlertOnce,
  bool? showWhen,
  int? when,
  bool? channelShowBadge,
  bool? showProgress,
  int? maxProgress,
  int? progress,
  bool? indeterminate,
  AndroidNotificationChannelAction? channelAction,
  bool? enableLights,
  Color? ledColor,
  int? ledOnMs,
  int? ledOffMs,
  String? ticker,
  NotificationVisibility? visibility,
  int? timeoutAfter,
  String? category,
  bool? fullScreenIntent,
  String? shortcutId,
  Int32List? additionalFlags,
  String? subText,
  String? tag,
  bool? presentAlert,
  bool? presentSound,
  bool? presentBadge,
  String? soundFile,
  int? badgeNumber,
  List<IOSNotificationAttachment>? attachments,
  List<MacOSNotificationAttachment>? macAttachments,
  String? subtitle,
  String? threadIdentifier,
}) =>
    zonedSchedule(
      schedule,
      id: id,
      title: title,
      body: body,
      payload: payload,
      androidAllowWhileIdle: androidAllowWhileIdle,
      uiLocalNotificationDateInterpretation:
          uiLocalNotificationDateInterpretation,
      matchDateTimeComponents: matchDateTimeComponents,
      icon: icon,
      importance: importance,
      priority: priority,
      styleInformation: styleInformation,
      playSound: playSound,
      sound: sound,
      enableVibration: enableVibration,
      vibrationPattern: vibrationPattern,
      groupKey: groupKey,
      setAsGroupSummary: setAsGroupSummary,
      groupAlertBehavior: groupAlertBehavior,
      autoCancel: autoCancel,
      ongoing: ongoing,
      color: color,
      largeIcon: largeIcon,
      onlyAlertOnce: onlyAlertOnce,
      showWhen: showWhen,
      when: when,
      channelShowBadge: channelShowBadge,
      showProgress: showProgress,
      maxProgress: maxProgress,
      progress: progress,
      indeterminate: indeterminate,
      channelAction: channelAction,
      enableLights: enableLights,
      ledColor: ledColor,
      ledOnMs: ledOnMs,
      ledOffMs: ledOffMs,
      ticker: ticker,
      visibility: visibility,
      timeoutAfter: timeoutAfter,
      category: category,
      fullScreenIntent: fullScreenIntent,
      shortcutId: shortcutId,
      additionalFlags: additionalFlags,
      subText: subText,
      tag: tag,
      presentAlert: presentAlert,
      presentSound: presentSound,
      presentBadge: presentBadge,
      soundFile: soundFile,
      badgeNumber: badgeNumber,
      attachments: attachments,
      macAttachments: macAttachments,
      subtitle: subtitle,
      threadIdentifier: threadIdentifier,
    );