flutter_html_css_stylesheet library

Classes

CssSpecificity
The specificity of one selector, as the three counts CSS defines.
CssStyleRule
One style rule out of a stylesheet, for one selector.
CssStylesheetHtmlExtension
Makes the declarations in a <style> block reach flutter_html and its extension family.
StylesheetDeclaration
One property: value pair out of a stylesheet or an inline style.
UnsupportedCssRule
One rule that renders nothing, handed to onUnsupportedRule.

Enums

UnsupportedCssReason
Why a rule in a stylesheet renders nothing.

Constants

kNeverMatchingPseudoClasses → const Set<String>
The pseudo-classes the selector matcher evaluates to false for every element.
kSupportedPseudoClasses → const Set<String>
The pseudo-classes the selector matcher in package:html evaluates.
kSupportedPseudoClassFunctions → const Set<String>
The functional pseudo-classes the selector matcher evaluates.

Functions

applyRulesToInlineStyle(String? inlineStyle, Iterable<CssStyleRule> rules) → String
Merges the winning declarations of rules into inlineStyle.
joinDeclarationList(Iterable<StylesheetDeclaration> declarations) → String
Joins declarations back into an inline style="" value.
matchingRules(Iterable<CssStyleRule> rules, StyledElement element) → List<CssStyleRule>
The rules of rules that element matches, in source order.
parseCssRules(String source, {int firstOrder = 0, OnUnsupportedCssRule? onUnsupportedRule}) → List<CssStyleRule>
Reads a stylesheet and returns one CssStyleRule per selector.
parseDeclarationList(String style) → List<StylesheetDeclaration>
Splits an inline style="" value into declarations.
ruleMatchesElement(CssStyleRule rule, StyledElement element) → bool
Whether element matches rule's selector.
specificityOfSelector(String selector) → CssSpecificity
The specificity of one selector, given as source text.

Typedefs

OnUnsupportedCssRule = void Function(UnsupportedCssRule rule)
Called once per rule that renders nothing. See UnsupportedCssRule.