import '../../../backend/backend.dart'; class SearchState { const SearchState({ this.recent = const [], this.suggestions = const [], this.query = '', }); final List recent; final List suggestions; final String query; SearchState copyWith({ List? recent, List? suggestions, String? query, }) { return SearchState( recent: recent ?? this.recent, suggestions: suggestions ?? this.suggestions, query: query ?? this.query, ); } }