part of 'staff_cubit.dart'; class StaffState extends Equatable { final List allStaff; final Map> storesByStaff; final Map> staffByStore; final bool isLoading; final String? error; const StaffState({ this.allStaff = const [], this.storesByStaff = const {}, this.staffByStore = const {}, this.isLoading = false, this.error, }); StaffState copyWith({ List? allStaff, Map>? storesByStaff, Map>? staffByStore, bool? isLoading, String? error, }) { return StaffState( allStaff: allStaff ?? this.allStaff, storesByStaff: storesByStaff ?? this.storesByStaff, staffByStore: staffByStore ?? this.staffByStore, isLoading: isLoading ?? this.isLoading, error: error, ); } @override List get props => [ allStaff, storesByStaff, staffByStore, isLoading, error, ]; }