didChangeAppLifecycleState method Null safety
- AppLifecycleState state
override
Function called when the app changes the lifecycle state. @param state The new app state.
Implementation
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state != AppLifecycleState.resumed) {
_sessionManager.endSession();
} else {
_sessionManager.startSession().then(
(_) => updateMetadata(),
);
}
}