I have a widget that uses state restoration and does some extra logic in the restoreState method. I'd like to test that logic, so I'm wondering if there's a way to trigger state restoration from within a Flutter test.
I can manually test the logic with an Android emulator using "Don't keep activities" which will trigger restoreState when the application is restarted, but I want to do it in an automated test.