clone method

  1. @override
MediaDirective clone()
override

Implementation

@override
MediaDirective clone() {
  var cloneQueries = <MediaQuery>[];
  for (var mediaQuery in mediaQueries) {
    cloneQueries.add(mediaQuery.clone());
  }
  var cloneRules = <TreeNode>[];
  for (var rule in rules) {
    cloneRules.add(rule.clone());
  }
  return MediaDirective(cloneQueries, cloneRules, span);
}