ProfileAccentColors class final
Contains information about supported accent colors for user profile photo background in RGB format
Constructors
-
ProfileAccentColors({required List<
int> paletteColors, required List<int> backgroundColors, required List<int> storyColors}) -
Contains information about supported accent colors for user profile photo background in RGB format
const
-
ProfileAccentColors.fromJson(Map<
String, dynamic> json) -
Parses a ProfileAccentColors from TDLib 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?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
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 -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.