clone method

LineNode clone()

Creates new empty LineNode with the same style.

Returned line node is detached.

Implementation

LineNode clone() {
  final node = LineNode();
  node.applyStyle(style);
  return node;
}