copyWith method
GedcomElement
copyWith({
- int? level,
- String? pointer,
- String? tag,
- String? value,
- List<
GedcomElement> ? children, - GedcomElement? parent,
- String? crlf,
Returns copy of the element
Implementation
GedcomElement copyWith({
int? level,
String? pointer,
String? tag,
String? value,
List<GedcomElement>? children,
GedcomElement? parent,
String? crlf,
}) {
return GedcomElement(
level: level ?? this.level,
pointer: pointer ?? this.pointer,
tag: tag ?? this.tag,
value: value ?? this.value,
children: children ?? this.children,
parent: parent ?? this.parent,
crlf: crlf ?? this.crlf,
);
}