handleVisibilityChanged method

Future<void> handleVisibilityChanged(
  1. VisibilityInfo info
)

Implementation

Future<void> handleVisibilityChanged(VisibilityInfo info) async {
  if (info.visibleFraction >= widget.visibleFractionThreshold &&
      !_hasBeenVisible) {
    _hasBeenVisible = true;
    _controller.forward();
  }
}