Skip to content

Models ​

Category: Web

Source: models.dart

Classes ​

WebSearchResult ​

Constructor ​

dart
const WebSearchResult({
    required this.title,
    required this.url,
    required this.snippet,
    this.publishedAt,
  })

Properties ​

PropertyTypeDescription
titleString
urlUri
snippetString
publishedAtDateTime?

Methods ​

String toText() ​

WebSearchResponse ​

Constructor ​

dart
const WebSearchResponse({
    required this.provider,
    required this.query,
    required this.results,
    this.aiSummary,
  })

Properties ​

PropertyTypeDescription
providerString
queryString
resultsList<WebSearchResult>
aiSummaryString?

Methods ​

String toText() ​

Released under the MIT License.