ZetaThemeData class Theme

A representation of the Zeta theme data.

This class encapsulates the colors and fonts used for the Zeta theme in both light and dark modes.

Inheritance
Annotations

Constructors

ZetaThemeData({String fontFamily = kZetaFontFamily, String identifier = 'default', ZetaContrast contrast = ZetaContrast.aa, ZetaColors? colorsLight, ZetaColors? colorsDark, Color? primary, Color? secondary})
Constructs a ZetaThemeData.

Properties

colorsDark → ZetaColors
The colors used for the dark mode of the Zeta theme.
no setter
colorsLight → ZetaColors
The colors used for the light mode of the Zeta theme.
no setter
fontFamily → String
The font family used in the Zeta theme.
final
hashCode → int
The hash code for this object.
no setterinherited
identifier → String
An Identifier cab be assigned to identify the theme uniquely.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

apply({required ZetaContrast contrast}) → ZetaThemeData
Applies the given contrast to the current ZetaThemeData and returns a new ZetaThemeData with the updated contrast.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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