DateElement class

GEDCOM element consisting of tag GEDCOM_TAG_DATE

Inheritance

Constructors

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

Properties

children List<GedcomElement>
Direct child elements of the element
no setterinherited
crlf String?
Character used to delimit new lines
finalinherited
date DateTime?
no setter
hashCode int
The hash code for this object.
no setterinherited
isMultiline bool
Indicates whether element consist of multiple lines
no setterinherited
level int
Level of the element within the GEDCOM file
finalinherited
multiLineValue String?
Value of the element including concatenations or continuations
no setterinherited
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
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
copyWith({int? level, String? pointer, String? tag, String? value, List<GedcomElement>? children, GedcomElement? parent, String? crlf}) DateElement
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