ProfileShareThemeUpgradedGift class

A theme based on an upgraded gift owned by the user or the chat

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

ProfileShareThemeUpgradedGift({required UpgradedGift gift})
const

Properties

gift → UpgradedGift
gift The upgraded gift
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({UpgradedGift? gift}) → ProfileShareThemeUpgradedGift

Available on ProfileShareThemeUpgradedGift, provided by the ProfileShareThemeUpgradedGiftExtensions extension

getConstructor() → String
override
map<TResult extends Object?>({required TResult emoji(ProfileShareThemeEmoji value), required TResult upgradedGift(ProfileShareThemeUpgradedGift value)}) → TResult

Available on ProfileShareTheme, provided by the ProfileShareThemeExtensions extension

maybeMap<TResult extends Object?>({TResult emoji(ProfileShareThemeEmoji value)?, TResult upgradedGift(ProfileShareThemeUpgradedGift value)?, required TResult orElse()}) → TResult

Available on ProfileShareTheme, provided by the ProfileShareThemeExtensions extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
override

Static Methods

fromJson(Map<String, dynamic>? json) → ProfileShareThemeUpgradedGift?
Inherited by: ProfileShareThemeEmoji ProfileShareThemeUpgradedGift
override

Constants

constructor → const String