57 lines
1.5 KiB
Dart
57 lines
1.5 KiB
Dart
|
|
part of 'operation_files_bloc.dart';
|
||
|
|
|
||
|
|
abstract class OperationFilesEvent extends Equatable {
|
||
|
|
const OperationFilesEvent();
|
||
|
|
|
||
|
|
@override
|
||
|
|
List<Object?> get props => [];
|
||
|
|
}
|
||
|
|
|
||
|
|
class OperationsavedEvent extends OperationFilesEvent {
|
||
|
|
final String operationId;
|
||
|
|
const OperationsavedEvent(this.operationId);
|
||
|
|
|
||
|
|
@override
|
||
|
|
List<Object?> get props => [operationId];
|
||
|
|
}
|
||
|
|
|
||
|
|
class LoadOperationFilesEvent extends OperationFilesEvent {
|
||
|
|
final String? operationId;
|
||
|
|
final OperationModel? operation;
|
||
|
|
const LoadOperationFilesEvent({this.operationId, this.operation});
|
||
|
|
|
||
|
|
@override
|
||
|
|
List<Object?> get props => [operationId, operation];
|
||
|
|
}
|
||
|
|
|
||
|
|
class AddOperationFilesEvent extends OperationFilesEvent {
|
||
|
|
final List<PlatformFile> files;
|
||
|
|
const AddOperationFilesEvent(this.files);
|
||
|
|
|
||
|
|
@override
|
||
|
|
List<Object?> get props => [files];
|
||
|
|
}
|
||
|
|
|
||
|
|
class UploadOperationFilesEvent extends OperationFilesEvent {
|
||
|
|
final List<PlatformFile>? pickedFiles;
|
||
|
|
final List<File>? photos;
|
||
|
|
const UploadOperationFilesEvent({this.pickedFiles, this.photos});
|
||
|
|
|
||
|
|
@override
|
||
|
|
List<Object?> get props => [pickedFiles, photos];
|
||
|
|
}
|
||
|
|
|
||
|
|
class UploadMultipleOperationFilesEvent extends OperationFilesEvent {
|
||
|
|
final List<PlatformFile> files;
|
||
|
|
const UploadMultipleOperationFilesEvent(this.files);
|
||
|
|
@override
|
||
|
|
List<Object?> get props => [files];
|
||
|
|
}
|
||
|
|
|
||
|
|
class DeleteOperationFilesEvent extends OperationFilesEvent {}
|
||
|
|
|
||
|
|
class ToggleOperationFileSelectionEvent extends OperationFilesEvent {
|
||
|
|
final OperationFileModel file;
|
||
|
|
const ToggleOperationFileSelectionEvent(this.file);
|
||
|
|
}
|