replaceSync method

dynamic replaceSync(
  1. String text
)

Synchronously replaces the content of the stylesheet with the content passed into it.

Implementation

replaceSync(String text) {
  cssRules.clear();
  List<CSSRule> rules = CSSParser(text).parseRules();
  cssRules.addAll(rules);
}