clone method

  1. @override
StyletDirective clone()
override

Implementation

@override
StyletDirective clone() {
  var cloneRules = <TreeNode>[];
  for (var rule in rules) {
    cloneRules.add(rule.clone());
  }
  return StyletDirective(dartClassName, cloneRules, span);
}