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