FocusDetector constructor

const FocusDetector({
  1. required Widget child,
  2. VoidCallback? onFocusGained,
  3. VoidCallback? onFocusLost,
  4. VoidCallback? onVisibilityGained,
  5. VoidCallback? onVisibilityLost,
  6. VoidCallback? onForegroundGained,
  7. VoidCallback? onForegroundLost,
  8. Key? key,
})

Implementation

const FocusDetector({
  required this.child,
  this.onFocusGained,
  this.onFocusLost,
  this.onVisibilityGained,
  this.onVisibilityLost,
  this.onForegroundGained,
  this.onForegroundLost,
  Key? key,
}) : super(key: key);