part of 'customer_bloc.dart'; abstract class CustomerEvent extends Equatable { const CustomerEvent(); @override List get props => []; } // Carica tutti i clienti dell'azienda class LoadCustomersRequested extends CustomerEvent { final String companyId; const LoadCustomersRequested(this.companyId); } // Crea un cliente (usato sia dalla lista che dalla Dialog operazioni) class CreateCustomerRequested extends CustomerEvent { final CustomerModel customer; const CreateCustomerRequested(this.customer); } // Ricerca in tempo reale class SearchCustomersRequested extends CustomerEvent { final String companyId; final String query; const SearchCustomersRequested(this.companyId, this.query); } class UpdateCustomerRequested extends CustomerEvent { final CustomerModel customer; const UpdateCustomerRequested(this.customer); @override List get props => [customer]; }