I'm writing a Flutter app geared for mobile devices. I'm used to the Android paradigm where you persist all changes made by the user in onPause, which is basically called whenever the current screen goes into the background. I cannot find a Flutter equivalent.
All examples I see have a "Submit" button of sorts, but I would expect an app to save data when I press the back or home buttons (or if I press a save icon in the app bar).
Where do Flutter apps normally persist the state to storage?