part of 'staff_cubit.dart'; enum StaffStatus { initial, loading, success, emailSent, error } class StaffState extends Equatable { final StaffStatus status; final List allStaff; final Map> storesByStaff; final Map> staffByStore; final String? error; const StaffState({ this.status = StaffStatus.initial, this.allStaff = const [], this.storesByStaff = const {}, this.staffByStore = const {}, this.error, }); StaffState copyWith({ StaffStatus? status, List? allStaff, Map>? storesByStaff, Map>? staffByStore, String? error, }) { return StaffState( status: status ?? this.status, allStaff: allStaff ?? this.allStaff, storesByStaff: storesByStaff ?? this.storesByStaff, staffByStore: staffByStore ?? this.staffByStore, error: error, ); } @override List get props => [ status, allStaff, storesByStaff, staffByStore, error, ]; }