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に通知の本文を指定します。
- Available extensions
- 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) -
Convert from 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 → DynamicMap
-
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
-
map<
TResult extends Object?> (TResult $default(_LocalNotificationScheduleModel value)) → TResult -
Available on LocalNotificationScheduleModel, provided by the LocalNotificationScheduleModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LocalNotificationScheduleModel value)?) → TResult? -
Available on LocalNotificationScheduleModel, provided by the LocalNotificationScheduleModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LocalNotificationScheduleModel value)?, {required TResult orElse()}) → TResult -
Available on LocalNotificationScheduleModel, provided by the LocalNotificationScheduleModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(int? id, ModelTimestamp time, LocalNotificationRepeatSettings repeat, String title, String text, DynamicMap data)?, {required TResult orElse()}) → TResult -
Available on LocalNotificationScheduleModel, provided by the LocalNotificationScheduleModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
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
-
when<
TResult extends Object?> (TResult $default(int? id, ModelTimestamp time, LocalNotificationRepeatSettings repeat, String title, String text, DynamicMap data)) → TResult -
Available on LocalNotificationScheduleModel, provided by the LocalNotificationScheduleModelPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int? id, ModelTimestamp time, LocalNotificationRepeatSettings repeat, String title, String text, DynamicMap data)?) → TResult? -
Available on LocalNotificationScheduleModel, provided by the LocalNotificationScheduleModelPatterns extension
A variant ofwhenthat fallback to returningnull
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.