copy method

  1. @override
DOMTemplate copy({
  1. bool resolveDSX = false,
})
override

Returns a copy if this instance.

Implementation

@override
DOMTemplate copy({bool resolveDSX = false}) {
  if (resolveDSX) {
    var dsx = asDSX;
    if (dsx != null) {
      var s = dsx.createResolver().resolveValueAsString();
      return DOMTemplateContent(s);
    }
  }

  var copy = DOMTemplateNode();
  copy.nodes.addAll(copyNodes(resolveDSX: resolveDSX));
  return copy;
}