ChatNotificationSettings class
Constructors
- ChatNotificationSettings({required bool useDefaultMuteFor, required int muteFor, required bool useDefaultSound, required String sound, required bool useDefaultShowPreview, required bool showPreview, required bool useDefaultDisablePinnedMessageNotifications, required bool disablePinnedMessageNotifications, required bool useDefaultDisableMentionNotifications, required bool disableMentionNotifications})
-
Contains information about notification settings for a chat
const
-
ChatNotificationSettings.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- clientId → int?
-
client identifier
no setterinherited
- disableMentionNotifications → bool
-
disableMentionNotifications If true, notifications for messages with mentions will be created as for an ordinary unread message
final
- disablePinnedMessageNotifications → bool
-
disablePinnedMessageNotifications If true, notifications for incoming pinned messages will be created as for an ordinary unread message
final
- extra → dynamic
-
callback sign
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- muteFor → int
-
muteFor Time left before notifications will be unmuted, in seconds
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showPreview → bool
-
showPreview True, if message content must be displayed in notifications
final
- sound → String
-
sound The name of an audio file to be used for notification sounds; only applies to iOS applications
final
- useDefaultDisableMentionNotifications → bool
-
useDefaultDisableMentionNotifications If true, disable_mention_notifications is ignored and the value for the relevant type of chat is used instead
final
- useDefaultDisablePinnedMessageNotifications → bool
-
useDefaultDisablePinnedMessageNotifications If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat is used instead
final
- useDefaultMuteFor → bool
-
useDefaultMuteFor If true, mute_for is ignored and the value for the relevant type of chat is used instead
final
- useDefaultShowPreview → bool
-
useDefaultShowPreview If true, show_preview is ignored and the value for the relevant type of chat is used instead
final
- useDefaultSound → bool
-
useDefaultSound If true, sound is ignored and the value for the relevant type of chat is used instead
final
Methods
-
copyWith(
{bool? useDefaultMuteFor, int? muteFor, bool? useDefaultSound, String? sound, bool? useDefaultShowPreview, bool? showPreview, bool? useDefaultDisablePinnedMessageNotifications, bool? disablePinnedMessageNotifications, bool? useDefaultDisableMentionNotifications, bool? disableMentionNotifications}) → ChatNotificationSettings -
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String