LifecycleHooksSubscriber constructor
const
LifecycleHooksSubscriber({
- Key? key,
- required Widget child,
- VoidCallback? onAppShow,
- VoidCallback? onAppHide,
- VoidCallback? onAppResume,
- VoidCallback? onAppPause,
- VoidCallback? onAppRestart,
- VoidCallback? onAppInactive,
- VoidCallback? onAppDetach,
- ValueChanged<
AppLifecycleState> ? onAppLifecycleChange, - 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,
});