AlarmModel class
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)
Constructors
- AlarmModel({required int id, required DateTime dateTime, required String assetAudioPath, bool loopAudio = true, double fadeDuration = 0.0, String? notificationTitle, String? notificationBody, bool enableNotificationOnKill = true, bool monday = false, bool tuesday = false, bool wednesday = false, bool thursday = false, bool friday = false, bool saturday = false, bool sunday = false, bool active = false, int snooze = 8, int musicTime = 10, double incMusicTime = 5.0, double musicVolume = 1.0, double incMusicVolume = 0.5})
-
AlarmModel.fromJson(Map<
String, dynamic> source) -
factory
Properties
- active ↔ bool
-
getter/setter pair
- assetAudioPath → String
-
final
- dateTime ↔ DateTime
-
getter/setter pair
-
days
→ List<
bool> -
no setter
- enableNotificationOnKill → bool
-
final
- fadeDuration → double
-
final
- friday → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
getter/setter pair
- incMusicTime ↔ double
-
getter/setter pair
- incMusicVolume ↔ double
-
getter/setter pair
- loopAudio → bool
-
final
- monday → bool
-
final
- musicTime ↔ int
-
getter/setter pair
- musicVolume ↔ double
-
getter/setter pair
- notificationBody → String?
-
final
- notificationTitle → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saturday → bool
-
final
- setActive ← bool
-
no getter
- setDateTime ← DateTime
-
no getter
- setId ← int
-
no getter
- setSnooze ← int
-
no getter
- snooze ↔ int
-
getter/setter pair
- sunday → bool
-
final
- thursday → bool
-
final
- tuesday → bool
-
final
- wednesday → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited