isEmpty property
bool
isEmpty
Whether the controller is empty or not.
Implementation
bool get isEmpty {
// Consider that there's always the courser as a child.
if (root == currentNode) {
return root.children.length < 2;
} else {
return root.children.isEmpty;
}
}