TreeSliverRowExtentBuilder typedef
Signature for a function that returns an extent for the given TreeSliverNode in the TreeSliver.
Used by TreeSliver.treeRowExtentBuilder to size rows on demand in the tree. The provided SliverLayoutDimensions provide information about the current scroll state and Viewport dimensions.
See also:
- SliverVariedExtentList, which uses a similar item extent builder for dynamic child sizing in the list.
Implementation
typedef TreeSliverRowExtentBuilder = double Function(
TreeSliverNode<Object?> node,
SliverLayoutDimensions dimensions,
);