didChangeAppLifecycleState method
Handle application events.
Implementation
@override
Future<void> didChangeAppLifecycleState(
AppLifecycleState lifecycleState) async {
super.didChangeAppLifecycleState(lifecycleState);
// When app has resumed from background.
if (lifecycleState == AppLifecycleState.resumed) {
await updateVersionInfo();
}
}