didChangeAppLifecycleState method
Implementation
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.paused) {
goOffline();
} else if (state == AppLifecycleState.resumed) {
goOnline();
}
}
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.paused) {
goOffline();
} else if (state == AppLifecycleState.resumed) {
goOnline();
}
}