mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 11:15:49 -06:00
31 lines
695 B
Dart
31 lines
695 B
Dart
part of 'document_scanner_cubit.dart';
|
|
|
|
sealed class DocumentScannerState {
|
|
final List<File> scans;
|
|
|
|
const DocumentScannerState({
|
|
this.scans = const [],
|
|
});
|
|
}
|
|
|
|
class InitialDocumentScannerState extends DocumentScannerState {
|
|
const InitialDocumentScannerState();
|
|
}
|
|
|
|
class RestoringDocumentScannerState extends DocumentScannerState {
|
|
const RestoringDocumentScannerState({super.scans});
|
|
}
|
|
|
|
class LoadedDocumentScannerState extends DocumentScannerState {
|
|
const LoadedDocumentScannerState({super.scans});
|
|
}
|
|
|
|
class ErrorDocumentScannerState extends DocumentScannerState {
|
|
final String message;
|
|
|
|
const ErrorDocumentScannerState({
|
|
required this.message,
|
|
super.scans,
|
|
});
|
|
}
|