restoreFrom method

Future<void> restoreFrom(
  1. TestRestorationData data
)

Restores the widget tree under test to the state described by the provided TestRestorationData.

The data provided to this method is usually obtained from getRestorationData.

Implementation

Future<void> restoreFrom(TestRestorationData data) {
  binding.restorationManager.restoreFrom(data);
  return pump();
}