ruleset method

Ruleset ruleset (String selectors, List<Node> rules)

ex.: ruleset('h1 div, h2 div', declaration('prop', 'value'));

Implementation

Ruleset ruleset(String selectors, List<Node> rules) {
  if (selectors?.isNotEmpty ?? false) {
    final String _selectors = '$selectors {}';
    final Ruleset result = ParseNode(_selectors, 0, null).ruleset();
    return Ruleset(result.selectors, rules);
  } else {
    return Ruleset(null, rules);
  }
}