UpdateAccentColors class final

The list of supported accent colors has changed

Inheritance

Constructors

UpdateAccentColors({required List<AccentColor> colors, required List<int> availableAccentColorIds, dynamic extra, int? clientId})
The list of supported accent colors has changed
const
UpdateAccentColors.fromJson(Map<String, dynamic> json)
Parses a UpdateAccentColors from TDLib JSON.
factory

Properties

availableAccentColorIds → List<int>
The list of accent color identifiers, which can be set through setAccentColor and setChatAccentColor. The colors must be shown in the specififed order
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
colors → List<AccentColor>
Information about supported colors; colors with identifiers 0 (red), 1 (orange), 2 (purple/violet), 3 (green), 4 (cyan), 5 (blue), 6 (pink) must always be supported and aren't included in the list. The exact colors for the accent colors with identifiers 0-6 must be taken from the app theme
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<AccentColor>? colors, List<int>? availableAccentColorIds, dynamic extra, int? clientId}) → UpdateAccentColors
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
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.