restoreFrom method Null safety

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:


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