parseRule static method

CSSRule? parseRule(
  1. String text, {
  2. CSSStyleSheet? parentStyleSheet,
})

Implementation

static CSSRule? parseRule(String text, {CSSStyleSheet? parentStyleSheet}) {
  // TODO: parse other css rule
  CSSStyleRule? rule = CSSStyleRuleParser.parse(text);
  if (rule != null) {
    rule.parentStyleSheet = parentStyleSheet;
  }
  return rule;
}