IndividualElement class

GEDCOM element consisting of tag GEDCOM_TAG_INDIVIDUAL

Inheritance
Implemented types

Constructors

IndividualElement({required int level, String? pointer, String? value, List<GedcomElement>? children, GedcomElement? parent, String? crlf = '\n'})
Constructor of the FileElement

Properties

birthDate DateTime?
Returns individual's birth date. Returns null if not available.
no setter
children List<GedcomElement>
Direct child elements of the element
no setterinherited
crlf String?
Character used to delimit new lines
finalinherited
deathDate DateTime?
Returns individual's death date if deceased. Returns null if not available.
no setter
hashCode int
The hash code for this object.
no setterinherited
isChild bool
Checks if this individual is child of a family
no setter
isDeceased bool
Checks if this individual is deceased
no setter
isMultiline bool
Indicates whether element consist of multiple lines
no setterinherited
isPrivate bool
Checks if this individual is marked private
no setter
isSpouse bool
Checks if this individual is a spouse/has a family
no setter
level int
Level of the element within the GEDCOM file
finalinherited
multiLineValue String?
Value of the element including concatenations or continuations
no setterinherited
name Name
Returns an individual's name as Name
no setter
parent GedcomElement?
Parent element of the element
finalinherited
pointer String?
Pointer of the element withing the GEDCOM file
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spouseFamily String?
Returns pointer value of the family where individual is wife or husband. Returns null if not available.
no setter
tag String
Tag of the element within the GEDCOM file
no setteroverride
value String?
Value of the element within the GEDCOM file
finalinherited

Methods

addChildElement(GedcomElement element) GedcomElement
Returns new reference to the added element where this element is its parent
inherited
compareTo(IndividualElement other) int
Compares this object to another object.
override
copyWith({int? level, String? pointer, String? tag, String? value, List<GedcomElement>? children, GedcomElement? parent, String? crlf}) IndividualElement
Returns copy of the element
override
newChildElement({String? tag, String pointer = '', String value = ''}) GedcomElement
Creates and returns a new child element of this element
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toGedcomString({bool recursive = false}) String
Formats this element and optionally all of its subelements to GEDCOM string
inherited
toJson() String
Returns JSON representation of the elmenet
inherited
toMap() Map<String, dynamic>
Returns map of the element
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object o) bool
The equality operator.
inherited