addSchedule abstract method

Future<int?> addSchedule(
  1. String uid, {
  2. required String title,
  3. required String text,
  4. required DateTime time,
  5. int? badgeCount,
  6. LocalNotificationRepeatSettings repeat = LocalNotificationRepeatSettings.none,
  7. NotificationSound sound = NotificationSound.defaultSound,
  8. DynamicMap? data,
  9. Uri? link,
  10. String? timezone,
})

Add a schedule.

Specify a unique ID for uid. If this ID is duplicated, the previous schedule will be overwritten.

Specify the title of the notification in title. Specify the message of the notification in the text field.

Specify the date and time for notification in time.

You can set the notification to repeat by specifying repeat.

Return the ID of the notification when it is registered.

スケジュールを追加します。

uidに一意のIDを指定します。このIDが重複すると以前のスケジュールが上書きされます。

titleに通知のタイトルを指定します。textに通知のメッセージを指定します。

timeに通知を行う日時を指定します。

repeatを指定することで通知を繰り返す設定を行うことができます。

通知が登録された時そのIDを返してください。

Implementation

Future<int?> addSchedule(
  String uid, {
  required String title,
  required String text,
  required DateTime time,
  int? badgeCount,
  LocalNotificationRepeatSettings repeat =
      LocalNotificationRepeatSettings.none,
  NotificationSound sound = NotificationSound.defaultSound,
  DynamicMap? data,
  Uri? link,
  String? timezone,
});