isAppInForeground top-level property
final
Implementation
final isAppInForeground = StateProvider<bool>(
(ref) =>
ref.watch(appStateProvider) ==
AppLifecycleState.resumed, // this means we are running
);
final isAppInForeground = StateProvider<bool>(
(ref) =>
ref.watch(appStateProvider) ==
AppLifecycleState.resumed, // this means we are running
);