insertRule method

dynamic insertRule(
  1. String text,
  2. int index
)

Implementation

insertRule(String text, int index) {
  List<CSSRule> rules = CSSParser(text).parseRules();
  cssRules.addAll(rules);
}