LifecycleWidget constructor
const
LifecycleWidget({
- required Widget child,
- VoidCallback? onResume,
- VoidCallback? onPause,
- VoidCallback? onDetached,
- VoidCallback? onInactive,
- VoidCallback? onHidden,
Helper widget for reacting to lifecycle events. This widget listens to changes in the AppLifecycleState.
Implementation
const LifecycleWidget({
required this.child,
this.onResume,
this.onPause,
this.onDetached,
this.onInactive,
this.onHidden,
});