ChannelPreference class
Channel-specific preferences for a notification type.
Constructors
- ChannelPreference({bool push = true, bool email = true, bool inApp = true})
-
Creates a new ChannelPreference instance.
const
-
ChannelPreference.fromMap(Map<
String, dynamic> map) -
Creates a ChannelPreference from API response map.
factory
Properties
- email → bool
-
Whether email is enabled for this notification type
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inApp → bool
-
Whether in-app is enabled for this notification type
final
- push → bool
-
Whether push is enabled for this notification type
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this preference to a map for API requests.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited