nextPage method
Fetches the next batch of videos or returns null if there are no more results.
Implementation
Future<VideoSearchList?> nextPage() async {
final page = await _page.nextPage(_httpClient);
if (page == null) {
return null;
}
return VideoSearchList(
page.searchContent
.whereType<SearchVideo>()
.map((e) => Video(
e.id,
e.title,
e.author,
ChannelId(e.channelId),
e.uploadDate.toDateTime(),
e.uploadDate,
null,
e.description,
e.duration.toDuration(),
ThumbnailSet(e.id.value),
null,
Engagement(e.viewCount, null, null),
e.isLive,
))
.toList(),
page,
_httpClient);
}