ChatNotificationSettings class

Inheritance

Constructors

ChatNotificationSettings({bool useDefaultMuteFor, int muteFor, bool useDefaultSound, String sound, bool useDefaultShowPreview, bool showPreview, bool useDefaultDisablePinnedMessageNotifications, bool disablePinnedMessageNotifications, bool useDefaultDisableMentionNotifications, bool disableMentionNotifications})
Contains information about notification settings for a chat
ChatNotificationSettings.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

disableMentionNotifications bool
disableMentionNotifications If true, notifications for messages with mentions will be created as for an ordinary unread message
read / write
disablePinnedMessageNotifications bool
disablePinnedMessageNotifications If true, notifications for incoming pinned messages will be created as for an ordinary unread message
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
muteFor int
muteFor Time left before notifications will be unmuted, in seconds
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showPreview bool
showPreview True, if message content should be displayed in notifications
read / write
sound String
sound The name of an audio file to be used for notification sounds; only applies to iOS applications
read / write
useDefaultDisableMentionNotifications bool
useDefaultDisableMentionNotifications If true, disable_mention_notifications is ignored and the value for the relevant type of chat is used instead
read / write
useDefaultDisablePinnedMessageNotifications bool
useDefaultDisablePinnedMessageNotifications If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat is used instead
read / write
useDefaultMuteFor bool
useDefaultMuteFor If true, mute_for is ignored and the value for the relevant type of chat is used instead
read / write
useDefaultShowPreview bool
useDefaultShowPreview If true, show_preview is ignored and the value for the relevant type of chat is used instead
read / write
useDefaultSound bool
useDefaultSound If true, sound is ignored and the value for the relevant type of chat is used instead
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() 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
'chatNotificationSettings'