RenderVisibilityDetector constructor

RenderVisibilityDetector({
  1. RenderBox? child,
  2. required Key key,
  3. required VisibilityChangedCallback? onVisibilityChanged,
  4. double visibleFraction = 0,
  5. bool triggerOnce = true,
})

Constructor. See the corresponding properties for parameter details.

Implementation

RenderVisibilityDetector({
  RenderBox? child,
  required this.key,
  required VisibilityChangedCallback? onVisibilityChanged,
  double visibleFraction = 0,
  bool triggerOnce = true,
}) : super(child) {
  _onVisibilityChanged = onVisibilityChanged;
  _visibleFraction = visibleFraction;
  _triggerOnce = triggerOnce;
}