import 'package:equatable/equatable.dart'; import 'package:proxibuy/domain/entities/category_entity.dart'; class NotificationPreferencesState extends Equatable { final List categories; final Set selectedCategoryIds; const NotificationPreferencesState({ this.categories = const [], this.selectedCategoryIds = const {}, }); NotificationPreferencesState copyWith({ List? categories, Set? selectedCategoryIds, }) { return NotificationPreferencesState( categories: categories ?? this.categories, selectedCategoryIds: selectedCategoryIds ?? this.selectedCategoryIds, ); } @override List get props => [categories, selectedCategoryIds]; }