disableRestoration method

void disableRestoration()

Disabled state restoration.

To turn restoration back on call restoreFrom.

Implementation

void disableRestoration() {
  _restorationData = TestRestorationData.empty;
  handleRestorationUpdateFromEngine(enabled: false, data: null);
}