copy method

HeadingNode copy({
  1. HeadingConfig? headingConfig,
})

Implementation

HeadingNode copy({HeadingConfig? headingConfig}) {
  final node = HeadingNode(headingConfig ?? this.headingConfig, visitor);
  for (var e in children) {
    node.accept(e);
  }
  return node;
}