onAppPaused method
void
onAppPaused()
Record the moment the app went to background. Call from
WidgetsBindingObserver.didChangeAppLifecycleState on
AppLifecycleState.paused.
Implementation
void onAppPaused() {
_lastPausedAt = DateTime.now();
}