copyWith method

  1. @override
LinkNode copyWith({
  1. String? url,
  2. List<MarkdownNode>? children,
  3. String? title,
})
override

Creates a copy of this node

Implementation

@override
LinkNode copyWith({
  String? url,
  List<MarkdownNode>? children,
  String? title,
}) {
  return LinkNode(
    url: url ?? this.url,
    children: children ?? this.children,
    title: title ?? this.title,
  );
}