ChatNotificationSettings class

Implemented types

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. useDefaultMuteFor If true, mute_for is ignored and the value for the relevant type of chat is used instead . muteFor Time left before notifications will be unmuted, in seconds. useDefaultSound If true, sound is ignored and the value for the relevant type of chat is used instead . sound The name of an audio file to be used for notification sounds; only applies to iOS applications. useDefaultShowPreview If true, show_preview is ignored and the value for the relevant type of chat is used instead . showPreview True, if message content should be displayed in notifications. useDefaultDisablePinnedMessageNotifications If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat is used instead . disablePinnedMessageNotifications If true, notifications for incoming pinned messages will be created as for an ordinary unread message. useDefaultDisableMentionNotifications If true, disable_mention_notifications is ignored and the value for the relevant type of chat is used instead . disableMentionNotifications If true, notifications for messages with mentions will be created as for an ordinary unread message
ChatNotificationSettings.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

disableMentionNotifications bool
read / write
disablePinnedMessageNotifications bool
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
muteFor int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showPreview bool
read / write
sound String
read / write
useDefaultDisableMentionNotifications bool
read / write
useDefaultDisablePinnedMessageNotifications bool
read / write
useDefaultMuteFor bool
read / write
useDefaultShowPreview bool
read / write
useDefaultSound bool
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
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"chatNotificationSettings"