AccentColor class final

Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews

Inheritance

Constructors

AccentColor({required int id, required int builtInAccentColorId, required List<int> lightThemeColors, required List<int> darkThemeColors, required int minChannelChatBoostLevel})
Contains information about supported accent color for user/chat name, background of empty chat photo, replies to messages and link previews
const
AccentColor.fromJson(Map<String, dynamic> json)
Parses a AccentColor from TDLib JSON.
factory

Properties

builtInAccentColorId → int
Identifier of a built-in color to use in places, where only one color is needed; 0-6
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
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
Accent color identifier
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
minChannelChatBoostLevel → int
The minimum chat boost level required to use the color in a channel chat
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? id, int? builtInAccentColorId, List<int>? lightThemeColors, List<int>? darkThemeColors, int? minChannelChatBoostLevel}) → AccentColor
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.