LocalNotificationScheduleModel class abstract
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.new(SchedulerQuery.path, adapter: "LocalNotificationMasamuneAdapter.primary.modelAdapter")
Constructors
- LocalNotificationScheduleModel({int? id, @Default.new(ModelTimestamp()) ModelTimestamp time, @Default.new(LocalNotificationRepeatSettings.none) LocalNotificationRepeatSettings repeat, @Default.new("") String title, @Default.new("") String text, @Default.new({}) DynamicMap data})
-
Model for scheduling and registering local PUSH notifications.
constfactory
-
LocalNotificationScheduleModel.fromJson(Map<
String, Object?> json) -
factory
Properties
-
copyWith
→ $LocalNotificationScheduleModelCopyWith<
LocalNotificationScheduleModel> -
Create a copy of LocalNotificationScheduleModel
with the given fields replaced by the non-null parameter values.
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> -
Serializes this LocalNotificationScheduleModel to a JSON map.
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.