root property

  1. @override
HierarchyOccurrence get root
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!;
}
set root (HierarchyOccurrence node)

Sets the root occurrence. Call this once during initialisation.

Implementation

set root(HierarchyOccurrence node) {
  _root = node;
}