GedcomMermaidRenderer class

Renders a parsed GEDCOM tree as Mermaid flowchart source.

The output is a self-contained Mermaid diagram where each IndividualElement is a labeled node, each FamilyElement is a small union node, and edges connect spouses to their family and families to their children.

final root = GedcomParser().parse(data);
final mermaid = const GedcomMermaidRenderer().render(root);

Constructors

GedcomMermaidRenderer({MermaidDirection direction = MermaidDirection.topDown, bool includeDates = true, MermaidFamilyShape familyShape = MermaidFamilyShape.hexagon})
Creates a renderer with the given display options.
const

Properties

direction MermaidDirection
Flowchart direction. Defaults to MermaidDirection.topDown.
final
familyShape MermaidFamilyShape
Shape used for family union nodes.
final
hashCode int
The hash code for this object.
no setterinherited
includeDates bool
When true, birth and death years are appended under each individual.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(RootElement root) String
Renders root as Mermaid flowchart source.
toString() String
A string representation of this object.
inherited

Operators

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