persist method

void persist ()

Implementation

void persist() {
  _saveTask?.cancel();
  _saveTask = Timer(_saveTimeout, () {
    return _storage.save(_data).catchError((e, st) {
      FlutterError.reportError(FlutterErrorDetails(
        exception: e,
        stack: st,
        library: 'state_persistence',
        silent: true,
      ));
    });
  });
}