StyleSheet class
Named stylesheet that compiles class-based style rules to CSS text.
Constructors
-
StyleSheet(String name, Map<
String, StyleRule> rules, {ThemeTokens? tokens}) -
Creates a named stylesheet from
rules.const
Properties
- cssText → String
-
Compiled CSS text for this stylesheet.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Stylesheet namespace used in generated class names.
final
-
rules
→ Map<
String, StyleRule> -
Style rules keyed by selector or class key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokens → ThemeTokens?
-
Optional tokens used to resolve TokenRef values.
final
Methods
-
className(
String key) → String -
Returns the generated class name for
key. -
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