inForeground property

bool get inForeground

Indicates whether this AppLifecycleState is considered as a foreground.

Implementation

bool get inForeground {
  switch (this) {
    case AppLifecycleState.resumed:
      return true;

    case AppLifecycleState.inactive:
    case AppLifecycleState.paused:
    case AppLifecycleState.detached:
    case AppLifecycleState.hidden:
      return false;
  }
}