clone method

LineNode clone()

Creates new empty LineNode with the same style.

Implementation

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