schedule method
- @Deprecated('Deprecated due to problems with time zones. Use zonedSchedule ' 'instead.')
- 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,
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,
);