isAppForeground method
check if the Flutter application is in the foreground
Implementation
bool isAppForeground(){
State? myState = getCurrentState();
return myState != null;
}
check if the Flutter application is in the foreground
bool isAppForeground(){
State? myState = getCurrentState();
return myState != null;
}