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();
  cssRules.addAll(CSSParser.parseRules(text));
}