restoreFrom method
- TestRestorationData data
Restores the state from the provided TestRestorationData.
The restoration data obtained form restorationData can be passed into this method to restore the state to what it was when the restoration data was originally retrieved.
See also:
- WidgetTester.restoreFrom, which exposes this method to a widget test.
Implementation
void restoreFrom(TestRestorationData data) {
_restorationData = data;
handleRestorationUpdateFromEngine(enabled: true, data: data.binary);
}