NotificationSettingsEntity class
Represents notification settings entity in the domain layer.
Constructors
-
NotificationSettingsEntity.new({bool isEnabled = true, bool allowSound = true, bool allowVibration = true, bool allowLights = true, bool allowBadge = true, String? soundPath, List<
int> ? vibrationPattern, bool quietHoursEnabled = false, TimeOfDay? quietHoursStart, TimeOfDay? quietHoursEnd, Map<String, NotificationChannelSettings> channels = const <String, NotificationChannelSettings>{}, Map<String, NotificationGroupSettings> groupSettings = const <String, NotificationGroupSettings>{}}) -
Creates a new notification settings entity.
const
-
NotificationSettingsEntity.fromMap(Map<
String, dynamic> map) -
Creates notification settings from a map.
factory
Properties
- allowBadge → bool
-
Whether badge updates are allowed.
final
- allowLights → bool
-
Whether lights are allowed for notifications.
final
- allowSound → bool
-
Whether sound is allowed for notifications.
final
- allowVibration → bool
-
Whether vibration is allowed for notifications.
final
-
channels
→ Map<
String, NotificationChannelSettings> -
Settings for individual notification channels.
final
-
groupSettings
→ Map<
String, NotificationGroupSettings> -
Settings for notification groups.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEnabled → bool
-
Whether notifications are enabled globally.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- quietHoursEnabled → bool
-
Whether quiet hours are enabled.
final
- quietHoursEnd → TimeOfDay?
-
End time for quiet hours.
final
- quietHoursStart → TimeOfDay?
-
Start time for quiet hours.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- soundPath → String?
-
Custom sound file path.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited -
vibrationPattern
→ List<
int> ? -
Custom vibration pattern.
final
Methods
-
copyWith(
{bool? isEnabled, bool? allowSound, bool? allowVibration, bool? allowLights, bool? allowBadge, String? soundPath, List< int> ? vibrationPattern, bool? quietHoursEnabled, TimeOfDay? quietHoursStart, TimeOfDay? quietHoursEnd, Map<String, NotificationChannelSettings> ? channels, Map<String, NotificationGroupSettings> ? groupSettings}) → NotificationSettingsEntity - Creates a copy of this settings entity with updated fields.
-
fromJson(
String json) → NotificationSettingsEntity -
Converts the object from a JSON string representation.
inherited
-
fromMap(
Map< String, dynamic> map) → NotificationSettingsEntity - Converts the object from a Map representation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
Converts the object to a JSON string representation.
inherited
-
toMap(
) → Map< String, dynamic> -
Converts the
BaseDataModel
object to a Map representation. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited