StyleRule class
A single style rule within a Stylesheet.
A style rule combines a selector, which identifies desired blocks within a document, and a styler, which generates style metadata for those blocks.
There is no explicit contract for the style metadata. Different blocks might expect different styles. For example, a paragraph might understand text styles, but an image wouldn't. The style system ignores any style metadata that a given block doesn't understand.
Constructors
- StyleRule(BlockSelector selector, Styler styler)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selector → BlockSelector
-
Selector that identifies document blocks that this rule should apply to.
final
- styler → Styler
-
Styles the blocks that this rule applies to.
final
Methods
-
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