UpgradedGiftColors class final

Contains information about color scheme for user's name, background of empty chat photo, replies to messages and link previews

Inheritance

Constructors

UpgradedGiftColors({required int id, required int modelCustomEmojiId, required int symbolCustomEmojiId, required int lightThemeAccentColor, required List<int> lightThemeColors, required int darkThemeAccentColor, required List<int> darkThemeColors})
Contains information about color scheme for user's name, background of empty chat photo, replies to messages and link previews
const
UpgradedGiftColors.fromJson(Map<String, dynamic> json)
Parses a UpgradedGiftColors from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
darkThemeAccentColor → int
Accent color to use in dark themes in RGB format
final
darkThemeColors → List<int>
The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → int
Unique identifier of the upgraded gift colors
final
lightThemeAccentColor → int
Accent color to use in light themes in RGB format
final
lightThemeColors → List<int>
The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes
final
modelCustomEmojiId → int
Custom emoji identifier of the model of the upgraded gift
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
symbolCustomEmojiId → int
Custom emoji identifier of the symbol of the upgraded gift
final

Methods

copyWith({int? id, int? modelCustomEmojiId, int? symbolCustomEmojiId, int? lightThemeAccentColor, List<int>? lightThemeColors, int? darkThemeAccentColor, List<int>? darkThemeColors}) → UpgradedGiftColors
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.