getSlideDeltaNid method
Slide delta for the live nid (paint-only FLIP offset), or 0.0 when
the node is not currently sliding. Hot-path equivalent of
getSlideDelta: read every paint, hit-test, and transform call
for visible rows, so saving the key-to-nid hash matters.
Implementation
double getSlideDeltaNid(int nid) {
// Composed with the make-room preview: painted position =
// structural + FLIP delta + held preview offset. One boolean guard
// keeps the non-drag hot path unchanged.
final base = _slide.deltaForNid(nid);
if (!_preview.hasActive) {
return base;
}
return base + _preview.deltaForNid(nid);
}