TreeSliverNodesAnimation typedef

TreeSliverNodesAnimation = ({int fromIndex, int toIndex, double value})

Represents the animation of the children of a parent TreeSliverNode that are animating into or out of view.

The fromIndex and toIndex are identify the animating children following the parent, with the value representing the status of the current animation. The value of toIndex is inclusive, meaning the child at that index is included in the animating segment.

Provided to RenderTreeSliver as part of RenderTreeSliver.activeAnimations by TreeSliver to properly offset animating children.

Implementation

typedef TreeSliverNodesAnimation = ({
  int fromIndex,
  int toIndex,
  double value,
});