useAppLifecycleState function Null safety

AppLifecycleState? useAppLifecycleState()

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

Implementation

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