SearchRouter
Category: Web
Source: search_router.dart
Classes
SearchRouter
Constructor
dart
SearchRouter(this.providers)Properties
| Property | Type | Description |
|---|---|---|
providers | List<WebSearchProvider> | |
defaultProvider | WebSearchProvider? get | The first provider that reports itself usable. Keyless providers say so through [WebSearchProvider.isConfigured] — DuckDuckGo returns true unconditionally — so there is no separate "free fallback" tier. |
Methods
`Future<WebSearchResponse> search(
String query, {
int maxResults = 5,
String? providerName,
bool fallback = true,
})`