16 lines
340 B
Dart
16 lines
340 B
Dart
part of 'sync_bloc.dart';
|
|
|
|
@freezed
|
|
class SyncState with _$SyncState {
|
|
const factory SyncState({
|
|
@Default(false) bool isSyncing,
|
|
@Default(0.0) double progress,
|
|
SyncStep? currentStep,
|
|
String? message,
|
|
SyncStats? stats,
|
|
String? errorMessage,
|
|
}) = _SyncState;
|
|
|
|
factory SyncState.initial() => const SyncState();
|
|
}
|