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