nextPageUri method

Uri nextPageUri(
  1. bool getTrending
)

Implementation

Uri nextPageUri(bool getTrending) {
  Uri url;
  if (getTrending) {
    var options = this.getTrendingPageOption("pageToken", nextPageToken!);
    url = new Uri.https(baseURL, "youtube/v3/videos", options);
  } else {
    var options = this.channelId == null
        ? getOptions("pageToken", nextPageToken!)
        : getChannelPageOption(channelId!, "pageToken", nextPageToken!);
    url = new Uri.https(baseURL, "youtube/v3/search", options);
  }
  return url;
}