ProfileAccentColors class final

ProfileAccentColors (profileAccentColors) - basic class

Contains information about supported accent colors for user profile photo background in RGB format.

  • paletteColors: The list of 1-2 colors in RGB format, describing the colors, as expected to be shown in the color palette settings.
  • backgroundColors: The list of 1-2 colors in RGB format, describing the colors, as expected to be used for the profile photo background.
  • storyColors: The list of 2 colors in RGB format, describing the colors of the gradient to be used for the unread active story indicator around profile photo.
Inheritance

Constructors

ProfileAccentColors({required List<int> paletteColors, required List<int> backgroundColors, required List<int> storyColors})
ProfileAccentColors (profileAccentColors) - basic class
const
ProfileAccentColors.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

backgroundColors List<int>
The list of 1-2 colors in RGB format, describing the colors, as expected to be used for the profile photo background
final
clientId int?
Client ID, from which this object was received
no setterinherited
currentObjectId String
TDLib object type for current class instance
no setteroverride
extra → dynamic
A sign from TDLib update
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
paletteColors List<int>
The list of 1-2 colors in RGB format, describing the colors, as expected to be shown in the color palette settings
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storyColors List<int>
The list of 2 colors in RGB format, describing the colors of the gradient to be used for the unread active story indicator around profile photo
final

Methods

copyWith({List<int>? paletteColors, List<int>? backgroundColors, List<int>? storyColors}) ProfileAccentColors
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() String
Convert model to TDLib JSON format, encoded into String.
override

Operators

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

Constants

defaultObjectId → const String
TDLib object type