Store constructor

Store()

Implementation

Store() {
  final pers = persistents();

  if (pers.isNotEmpty) {
    // Start the data restoration process.
    restoring = _setupPersistents(pers).then(
      (_) => restoring = null, // Reset restoring on completion
      onError: (error, stackTrace) {
        debugPrintStack(
          stackTrace: stackTrace,
          label: '[kaeru_store]: Restore data "$id" failed because of $error',
        );

        restoring = null;
      },
    );
  }
}