restoreFrom method

void restoreFrom(
  1. 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:

Implementation

void restoreFrom(TestRestorationData data) {
  _restorationData = data;
  handleRestorationUpdateFromEngine(enabled: true, data: data.binary);
}