Skip to content

BraveProvider

Category: Web

Source: brave_provider.dart

Classes

BraveSearchProvider

Constructor

dart
BraveSearchProvider({
    required this.apiKey,
    this.timeoutSeconds = 15,
    http.Client? client,
  })

Properties

PropertyTypeDescription
apiKeyString?
timeoutSecondsint
nameString get
isConfiguredbool get
nameString get
isConfiguredbool get

Methods

Future<WebSearchResponse> search(String query, {int maxResults = 5})
`static WebSearchResponse parseResponse(
Map<String, dynamic> json,
String query,

)`

HttpException

Constructor

dart
HttpException(this.message)

Properties

PropertyTypeDescription
messageString

Methods

String toString()

Released under the MIT License.