CSSStyleSheet constructor

CSSStyleSheet(
  1. String text, {
  2. bool disabled = false,
  3. String? herf,
})

Implementation

CSSStyleSheet(String text, { this.disabled = false, this.herf }) {
  List<CSSRule> rules = CSSParser.parseRules(text, parentStyleSheet: this);
  cssRules.addAll(rules);
}