LocalNotificationScheduleModel class

Model for scheduling and registering local PUSH notifications.

Specify the date and time to send the notification in time.

Specify the title of the notification in title. Specify the body of the notification in text.

ローカルPUSH通知をスケジュールして登録するためのモデルです。

timeに通知を送信する日時を指定します。

titleに通知のタイトルを指定します。textに通知の本文を指定します。

Annotations
  • @freezed
  • @formValue
  • @immutable
  • @CollectionModelPath(SchedulerQuery.path, adapter: "LocalNotificationMasamuneAdapter.primary.modelAdapter")

Constructors

LocalNotificationScheduleModel({int? id, @Default(ModelTimestamp()) ModelTimestamp time, @Default(LocalNotificationRepeatSettings.none) LocalNotificationRepeatSettings repeat, @Default("") String title, @Default("") String text, @Default({}) DynamicMap data})
Model for scheduling and registering local PUSH notifications.
const
factory
LocalNotificationScheduleModel.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $LocalNotificationScheduleModelCopyWith<LocalNotificationScheduleModel>
no setterinherited
data Map<String, dynamic>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
no setterinherited
repeat LocalNotificationRepeatSettings
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
no setterinherited
time → ModelTimestamp
no setterinherited
title String
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

collection → const _$LocalNotificationScheduleModelCollectionQuery
Query for collection.
document → const _$LocalNotificationScheduleModelDocumentQuery
Query for document.
form → const _$LocalNotificationScheduleModelFormQuery
Query for form value.
path → const String
Collection path for registering local PUSH schedules.