YoutubeExplode constructor

YoutubeExplode([
  1. YoutubeHttpClient? httpClient
])

Initializes an instance of YoutubeClient.

Implementation

YoutubeExplode([YoutubeHttpClient? httpClient])
    : _httpClient = httpClient ?? YoutubeHttpClient() {
  videos = VideoClient(_httpClient);
  playlists = PlaylistClient(_httpClient);
  channels = ChannelClient(_httpClient);
  search = SearchClient(_httpClient);
}