selectable suggestion provider
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
import 'package:exceptions/exceptions.dart';
|
||||
|
||||
enum SearchSuggestionProviders {
|
||||
brave('Brave', 'brave'),
|
||||
ddg('DuckDuckGo', 'ddg'),
|
||||
kagi('Kagi', 'kagi'),
|
||||
qwant('Qwant', 'qwant');
|
||||
|
||||
final String label;
|
||||
final String relatedBang;
|
||||
|
||||
const SearchSuggestionProviders(this.label, this.relatedBang);
|
||||
}
|
||||
|
||||
abstract interface class ISearchSuggestionProvider {
|
||||
Future<Result<List<String>>> getSuggestions(String query);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user