root property
override
The root occurrence for the hierarchy.
Implementation
@override
HierarchyOccurrence get root {
if (_root == null) {
throw StateError(
'Root occurrence not set. Call setRoot() during initialization.');
}
return _root!;
}
Sets the root occurrence. Call this once during initialisation.
Implementation
set root(HierarchyOccurrence node) {
_root = node;
}