RenderVisibilityDetector constructor
RenderVisibilityDetector({
- RenderBox? child,
- required Key key,
- required VisibilityChangedCallback? onVisibilityChanged,
- double visibleFraction = 0,
- 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;
}