SearchClient class Null safety

YouTube search queries.

Constructors

SearchClient(YoutubeHttpClient _httpClient)
Initializes an instance of SearchClient

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getQuerySuggestions(String query) Future<List<String>>
Returns the suggestions youtube provide while search on the page.
getVideos(String searchQuery, {SearchFilter filter = const SearchFilter('')}) Future<SearchList>
Enumerates videos returned by the specified search query (from the video search page). The videos are sent in batch of 20 videos. You SearchList.nextPage to get the next batch of videos.
getVideosFromPage(String searchQuery, {bool onlyVideos = true, SearchFilter filter = const SearchFilter('')}) Stream<BaseSearchContent>
Enumerates videos returned by the specified search query (from the video search page). Contains only instances of SearchVideo or SearchPlaylist
@Deprecated('Since version 1.9.0 this is the same as [SearchClient.getVideos].')
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
queryFromPage(String searchQuery) Future<SearchQuery>
Queries to YouTube to get the results.
@Deprecated('Use getVideosFromPage instead - ' 'Should be used only to get related videos')
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited