appBackgrounded property
bool
get
appBackgrounded
Whether the last read found the app itself in the background or suspended (home screen, another app in front).
Implementation
bool get appBackgrounded => _appState == 'background' || _appState == 'suspended';