clone method Null safety

BlockNode clone()

Creates new unmounted BlockNode with the same attributes.

Implementation

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