UserPrivacySetting class abstract
Describes available user privacy settings
- Inheritance
- Implementers
- UserPrivacySettingAllowCalls
- UserPrivacySettingAllowChatInvites
- UserPrivacySettingAllowFindingByPhoneNumber
- UserPrivacySettingAllowPeerToPeerCalls
- UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages
- UserPrivacySettingAllowUnpaidMessages
- UserPrivacySettingAutosaveGifts
- UserPrivacySettingShowBio
- UserPrivacySettingShowBirthdate
- UserPrivacySettingShowLinkInForwardedMessages
- UserPrivacySettingShowPhoneNumber
- UserPrivacySettingShowProfileAudio
- UserPrivacySettingShowProfilePhoto
- UserPrivacySettingShowStatus
- Available extensions
- Annotations
-
- @immutable
Constructors
- UserPrivacySetting()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getConstructor(
) → String -
override
-
map<
TResult extends Object?> ({required TResult showStatus(UserPrivacySettingShowStatus value), required TResult showProfilePhoto(UserPrivacySettingShowProfilePhoto value), required TResult showLinkInForwardedMessages(UserPrivacySettingShowLinkInForwardedMessages value), required TResult showPhoneNumber(UserPrivacySettingShowPhoneNumber value), required TResult showBio(UserPrivacySettingShowBio value), required TResult showBirthdate(UserPrivacySettingShowBirthdate value), required TResult showProfileAudio(UserPrivacySettingShowProfileAudio value), required TResult allowChatInvites(UserPrivacySettingAllowChatInvites value), required TResult allowCalls(UserPrivacySettingAllowCalls value), required TResult allowPeerToPeerCalls(UserPrivacySettingAllowPeerToPeerCalls value), required TResult allowFindingByPhoneNumber(UserPrivacySettingAllowFindingByPhoneNumber value), required TResult allowPrivateVoiceAndVideoNoteMessages(UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages value), required TResult autosaveGifts(UserPrivacySettingAutosaveGifts value), required TResult allowUnpaidMessages(UserPrivacySettingAllowUnpaidMessages value)}) → TResult -
Available on UserPrivacySetting, provided by the UserPrivacySettingExtensions extension
-
maybeMap<
TResult extends Object?> ({TResult showStatus(UserPrivacySettingShowStatus value)?, TResult showProfilePhoto(UserPrivacySettingShowProfilePhoto value)?, TResult showLinkInForwardedMessages(UserPrivacySettingShowLinkInForwardedMessages value)?, TResult showPhoneNumber(UserPrivacySettingShowPhoneNumber value)?, TResult showBio(UserPrivacySettingShowBio value)?, TResult showBirthdate(UserPrivacySettingShowBirthdate value)?, TResult showProfileAudio(UserPrivacySettingShowProfileAudio value)?, TResult allowChatInvites(UserPrivacySettingAllowChatInvites value)?, TResult allowCalls(UserPrivacySettingAllowCalls value)?, TResult allowPeerToPeerCalls(UserPrivacySettingAllowPeerToPeerCalls value)?, TResult allowFindingByPhoneNumber(UserPrivacySettingAllowFindingByPhoneNumber value)?, TResult allowPrivateVoiceAndVideoNoteMessages(UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages value)?, TResult autosaveGifts(UserPrivacySettingAutosaveGifts value)?, TResult allowUnpaidMessages(UserPrivacySettingAllowUnpaidMessages value)?, required TResult orElse()}) → TResult -
Available on UserPrivacySetting, provided by the UserPrivacySettingExtensions extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → UserPrivacySetting? - Inherited by: UserPrivacySettingAllowCalls UserPrivacySettingAllowChatInvites UserPrivacySettingAllowFindingByPhoneNumber UserPrivacySettingAllowPeerToPeerCalls UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages UserPrivacySettingAllowUnpaidMessages UserPrivacySettingAutosaveGifts UserPrivacySettingShowBio UserPrivacySettingShowBirthdate UserPrivacySettingShowLinkInForwardedMessages UserPrivacySettingShowPhoneNumber UserPrivacySettingShowProfileAudio UserPrivacySettingShowProfilePhoto UserPrivacySettingShowStatus
Constants
- constructor → const String