visibleFraction property

double get visibleFraction

The visible fraction of the child widget on the corresponding sliver.

Implementation

double get visibleFraction {
  if (paintExtent == 0) return 0;
  return (visibleMainAxisSize / paintExtent).clamp(0, 1);
}