14 lines
386 B
Dart
14 lines
386 B
Dart
part of 'data_sync_bloc.dart';
|
|
|
|
@freezed
|
|
class DataSyncState with _$DataSyncState {
|
|
const factory DataSyncState.initial() = _Initial;
|
|
const factory DataSyncState.syncing(
|
|
SyncStep step,
|
|
double progress,
|
|
String message,
|
|
) = _Syncing;
|
|
const factory DataSyncState.completed(SyncStats stats) = _Completed;
|
|
const factory DataSyncState.error(String message) = _Error;
|
|
}
|