Skip to content

SearchRouter ​

Category: Web

Source: search_router.dart

Classes ​

SearchRouter ​

Constructor ​

dart
SearchRouter(this.providers)

Properties ​

PropertyTypeDescription
providersList<WebSearchProvider>
defaultProviderWebSearchProvider? getThe 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 ​

String query, {
int maxResults = 5,
String? providerName,
bool fallback = true,

})`

Released under the MIT License.