VisibilityChecker constructor

const VisibilityChecker({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onVisible,
  4. bool fireOnce = true,
  5. bool enabled = true,
  6. double visibilityThreshold = 1.0,
})

Implementation

const VisibilityChecker({
  super.key,
  required this.child,
  this.onVisible,
  this.fireOnce = true,
  this.enabled = true,
  this.visibilityThreshold = 1.0, // 1.0 = fully visible, 0.5 = half, etc.
});