ThemeParameters class final

Contains parameters of the application theme

Inheritance

Constructors

ThemeParameters({required int backgroundColor, required int secondaryBackgroundColor, required int headerBackgroundColor, required int sectionBackgroundColor, required int textColor, required int accentTextColor, required int sectionHeaderTextColor, required int subtitleTextColor, required int destructiveTextColor, required int hintColor, required int linkColor, required int buttonColor, required int buttonTextColor})
Contains parameters of the application theme
const
ThemeParameters.fromJson(Map<String, dynamic> json)
Parses a ThemeParameters from TDLib JSON.
factory

Properties

accentTextColor → int
An accent color of the text in the RGB24 format
final
backgroundColor → int
A color of the background in the RGB24 format
final
buttonColor → int
A color of the buttons in the RGB24 format
final
buttonTextColor → int
A color of text on the buttons in the RGB24 format
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
destructiveTextColor → int
A color of the text for destructive actions in the RGB24 format
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
headerBackgroundColor → int
A color of the header background in the RGB24 format
final
hintColor → int
A color of hints in the RGB24 format
final
linkColor → int
A color of links in the RGB24 format
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryBackgroundColor → int
A secondary color for the background in the RGB24 format
final
sectionBackgroundColor → int
A color of the section background in the RGB24 format
final
sectionHeaderTextColor → int
A color of text on the section headers in the RGB24 format
final
subtitleTextColor → int
A color of the subtitle text in the RGB24 format
final
textColor → int
A color of text in the RGB24 format
final

Methods

copyWith({int? backgroundColor, int? secondaryBackgroundColor, int? headerBackgroundColor, int? sectionBackgroundColor, int? textColor, int? accentTextColor, int? sectionHeaderTextColor, int? subtitleTextColor, int? destructiveTextColor, int? hintColor, int? linkColor, int? buttonColor, int? buttonTextColor}) → ThemeParameters
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.