
import 'package:flutter_riverpod/flutter_riverpod.dart';

// Search Query Notifier
class SearchQueryNotifier extends Notifier<String> {
  @override
  String build() => '';
  void set(String value) => state = value;
}
final sakeSearchQueryProvider = NotifierProvider<SearchQueryNotifier, String>(SearchQueryNotifier.new);

// Favorite Filter Notifier
class FavoriteFilterNotifier extends Notifier<bool> {
  @override
  bool build() => false;
  void toggle() => state = !state;
  void set(bool value) => state = value;
}
final sakeFilterFavoriteProvider = NotifierProvider<FavoriteFilterNotifier, bool>(FavoriteFilterNotifier.new);

// Filter Tag Notifier
class FilterTagNotifier extends Notifier<String?> {
  @override
  String? build() => null;
  void set(String? value) => state = value;
}
final sakeFilterTagProvider = NotifierProvider<FilterTagNotifier, String?>(FilterTagNotifier.new);
// Filter Prefecture Notifier
class FilterPrefectureNotifier extends Notifier<String?> {
  @override
  String? build() => null;
  void set(String? value) => state = value;
}
final sakeFilterPrefectureProvider = NotifierProvider<FilterPrefectureNotifier, String?>(FilterPrefectureNotifier.new);
