useAppLifecycleState function

AppLifecycleState? useAppLifecycleState()

Returns the current AppLifecycleState value and rebuilds the widget when it changes.

Implementation

AppLifecycleState? useAppLifecycleState() {
  return use(const _AppLifecycleHook(rebuildOnChange: true));
}