LifecycleHooksSubscriber constructor

const LifecycleHooksSubscriber({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onAppShow,
  4. VoidCallback? onAppHide,
  5. VoidCallback? onAppResume,
  6. VoidCallback? onAppPause,
  7. VoidCallback? onAppRestart,
  8. VoidCallback? onAppInactive,
  9. VoidCallback? onAppDetach,
  10. ValueChanged<AppLifecycleState>? onAppLifecycleChange,
  11. Future<AppExitResponse> onExitAppRequest()?,
})

Implementation

const LifecycleHooksSubscriber({
  super.key,
  required this.child,
  this.onAppShow,
  this.onAppHide,
  this.onAppResume,
  this.onAppPause,
  this.onAppRestart,
  this.onAppInactive,
  this.onAppDetach,
  this.onAppLifecycleChange,
  this.onExitAppRequest,
});