AstryxStyleOverrides class
CSS property overrides for one style rule, plus any pseudo-class blocks.
{@tool snippet}
const AstryxStyleOverrides(
properties: <String, String>{'borderColor': '#8F9296'},
pseudo: <String, Map<String, String>>{
':hover': <String, String>{'borderColor': '#6E7175'},
},
);
{@end-tool}
- Annotations
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Whether this carries no overrides at all.
no setter
-
properties
→ Map<
String, String> -
CSS properties in camelCase, mapped to their values.
final
-
pseudo
→ Map<
String, Map< String, String> > -
Pseudo-class blocks, keyed by selector —
:hover,:focus-visible,:active,:disabledand so on — each mapping properties to values.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
merge(
AstryxStyleOverrides? other) → AstryxStyleOverrides -
Returns these overrides with every entry of
otherapplied on top. -
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