isAppInForeground top-level property

dynamic isAppInForeground
final

Implementation

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