BraveSearchProvider class final
Brave web search via the official REST API, keyed by BRAVE_API_KEY.
- Implemented types
Constructors
- BraveSearchProvider()
-
Creates the provider.
const
Properties
- apiKeyName → String?
-
Secret name this provider needs (e.g.
BRAVE_API_KEY), or null when it is keyless (DuckDuckGo).no setteroverride - endpoint → Uri
-
The endpoint this provider sends searches to — the host the network
gate (issue #682) checks before any request leaves.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Provider id used in config and error messages (e.g.
duckduckgo).no setteroverride - label → String
-
Human-readable name (e.g.
DuckDuckGo).no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
WebSearchRequest request) → Future< WebSearchResponse> -
Runs one search. Throws WebSearchException on failure so the chain
advances to the next provider.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited