NotificationChannelSettings class
Settings for a specific notification channel.
Constructors
-
NotificationChannelSettings.new({required String channelId, required String channelName, String? description, bool isEnabled = true, bool allowSound = true, bool allowVibration = true, bool allowLights = true, String? soundPath, List<
int> ? vibrationPattern}) -
Creates notification channel settings.
const
-
NotificationChannelSettings.fromMap(Map<
String, dynamic> map) -
Creates channel settings from a map.
factory
Properties
- allowLights → bool
-
Whether lights are allowed for this channel.
final
- allowSound → bool
-
Whether sound is allowed for this channel.
final
- allowVibration → bool
-
Whether vibration is allowed for this channel.
final
- channelId → String
-
The channel identifier.
final
- channelName → String
-
The channel display name.
final
- description → String?
-
The channel description.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEnabled → bool
-
Whether this channel is enabled.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- soundPath → String?
-
Custom sound file path for this channel.
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 for this channel.
final
Methods
-
fromJson(
String json) → NotificationChannelSettings -
Converts the object from a JSON string representation.
inherited
-
fromMap(
Map< String, dynamic> map) → NotificationChannelSettings - 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