resizingIntervalUpdated method

void resizingIntervalUpdated(
  1. _AnimatedSpaceInterval interval,
  2. double delta
)

The specified interval has been resized by a delta amount. If this interval is above the first item layouted in the list view, this amount will be added up to a cumulative variabile.

Implementation

void resizingIntervalUpdated(_AnimatedSpaceInterval interval, double delta) {
  assert(delta != 0.0);
  final firstChild = firstChildWithLayout;
  if (firstChild == null) return;
  if (interval.buildOffset < indexOf(firstChild)) {
    _resizeCorrectionAmount += delta;
  }
  markSafeNeedsLayout();
}