mirrored_repositories/boorusphere/lib/presentation/provider/data_backup
import 'package:boorusphere/presentation/provider/data_backup/data_backup.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'backup_result.freezed.dart';

@freezed
sealed class BackupResult with _$BackupResult {
  const factory BackupResult.idle() = IdleBackupResult;
  const factory BackupResult.imported() = ImportedBackupResult;
  const factory BackupResult.exported(String path) = ExportedBackupResult;
  const factory BackupResult.loading(DataBackupType type) = LoadingBackupResult;
  const factory BackupResult.error({Object? error, StackTrace? stackTrace}) =
      ErrorBackupResult;
}
