TreeSliverRowExtentBuilder typedef

TreeSliverRowExtentBuilder = double Function(TreeSliverNode<Object?> node, SliverLayoutDimensions dimensions)

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:

Implementation

typedef TreeSliverRowExtentBuilder = double Function(
  TreeSliverNode<Object?> node,
  SliverLayoutDimensions dimensions,
);