searchVideos method
Performs a search specifically for videos with the given query and returns a list of video details.
Implementation
Future<List<VideoDetailed>> searchVideos(String query) async {
final searchData = await constructRequest(
"search",
body: {
"query": query,
"params": "Eg-KAQwIABABGAAgACgAMABqChAEEAMQCRAFEAo%3D"
},
);
return traverseList(searchData, ["musicResponsiveListItemRenderer"])
.map(VideoParser.parseSearchResult)
.toList();
}