2026-04-23 11:20:34 +02:00
|
|
|
part of 'customer_files_bloc.dart';
|
|
|
|
|
|
|
|
|
|
abstract class CustomerFilesEvent extends Equatable {
|
|
|
|
|
const CustomerFilesEvent();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
List<Object> get props => [];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class LoadCustomerFilesEvent extends CustomerFilesEvent {}
|
|
|
|
|
|
|
|
|
|
class UploadCustomerFileEvent extends CustomerFilesEvent {
|
|
|
|
|
final PlatformFile? pickedFile;
|
|
|
|
|
final File? photo;
|
|
|
|
|
const UploadCustomerFileEvent({this.pickedFile, this.photo});
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-26 10:13:58 +02:00
|
|
|
class UploadMultipleCustomerFilesEvent extends CustomerFilesEvent {
|
|
|
|
|
final List<PlatformFile> files;
|
|
|
|
|
const UploadMultipleCustomerFilesEvent(this.files);
|
|
|
|
|
@override
|
|
|
|
|
List<Object> get props => [files];
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 12:39:22 +02:00
|
|
|
class DeleteCustomerFilesEvent extends CustomerFilesEvent {}
|
2026-04-23 11:20:34 +02:00
|
|
|
|
|
|
|
|
class ToggleCustomerFileSelectionEvent extends CustomerFilesEvent {
|
|
|
|
|
final CustomerFileModel file;
|
|
|
|
|
const ToggleCustomerFileSelectionEvent(this.file);
|
|
|
|
|
}
|