isActive method
- TreeSliverNode<
Object?> node
Whether or not the given TreeSliverNode is enclosed within its parent TreeSliverNode.
If the TreeSliverNode.parent isExpanded, or this is a root node, the given node is active and this method will return true. This does not reflect whether or not the node is visible in the Viewport.
Implementation
bool isActive(TreeSliverNode<Object?> node) {
assert(_state != null);
return _state!.isActive(node);
}