prepareResources method

  1. @override
Future<void> prepareResources()
override

If a media source requires resources to function, they can be prepared here and this function will be run once only at runtime during the initialisation step.

Implementation

@override
Future<void> prepareResources() async {
  _searchClient = SearchClient(_client);
  _videoClient = VideoClient(_client);
  _playlistClient = PlaylistClient(_client);
  _channelClient = ChannelClient(_client);
  _commentsClient = CommentsClient(_client);
}