AstryxDefinedTheme class
A defined theme, ready to hand to the theme runtime.
- Annotations
Constructors
-
AstryxDefinedTheme({required String name, required Map<
String, String> tokens, AstryxComponentStyleMap? components, Map<String, Object> ? icons, Map<String, AstryxTokenValue> ? inputTokens, AstryxResolvedOnMedia? onDark, AstryxResolvedOnMedia? onLight}) -
Creates a defined theme.
const
Properties
- components → AstryxComponentStyleMap?
-
Component style overrides.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
icons
→ Map<
String, Object> ? -
The icon registry. See AstryxDefineThemeInput.icons.
final
-
inputTokens
→ Map<
String, AstryxTokenValue> ? -
The explicit token overrides exactly as they were written.
final
- name → String
-
The theme name.
final
- onDark → AstryxResolvedOnMedia?
-
Resolved overrides for dark surfaces.
final
- onLight → AstryxResolvedOnMedia?
-
Resolved overrides for light surfaces.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tokens
→ Map<
String, String> -
The token overrides this theme sets, as CSS strings. Only the tokens the
theme actually specified are present.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override