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 {
  var page = await SearchPage.get(httpClient, searchQuery, filter: filter);
  return SearchQuery(httpClient, searchQuery, page);
}