TreeRenderHost typedef
Callback registered by every RenderSliverTree attached to a TreeController.
Invoked from TreeController.moveNode (and any future animated mutation)
to ask the render object to snapshot current painted offsets BEFORE the
mutation so the next performLayout can install a FLIP slide from
baseline → post-mutation.
Returning true means "the host is participating in this slide cycle" —
either it staged a fresh baseline now, or a prior call this frame already
staged one and the host is honoring the first-wins policy. Returning
false indicates the host cannot participate at all (not yet laid out,
detached, etc.).
Internal contract — this typedef is part of the sliver-render-object staging protocol. External callers should not implement or depend on it.
Implementation
typedef TreeRenderHost =
bool Function({required Duration duration, required Curve curve});