isBranchHovered static method
Check if the root or any of its descendants are hovered.
Implementation
static bool isBranchHovered(Object? rootId) {
final key = rootId ?? _defaultRoot;
final state = _roots[key];
if (state == null) return false;
if (state.isAnyHovered) return true;
// Check descendant roots
for (final child in _roots.values.where((r) => r.parentRootId == key)) {
if (isBranchHovered(child.rootId)) return true;
}
return false;
}