search static method

Future<SearchQuery> search(
  1. YoutubeHttpClient httpClient,
  2. String searchQuery, {
  3. SearchFilter filter = const SearchFilter(''),
})

Search a video.

Implementation

static Future<SearchQuery> search(
  YoutubeHttpClient httpClient,
  String searchQuery, {
  SearchFilter filter = const SearchFilter(''),
}) async {
  final page = await SearchPage.get(httpClient, searchQuery, filter: filter);
  return SearchQuery(httpClient, searchQuery, page);
}