This commit is contained in:
Mattia 2021-02-27 18:59:25 +01:00
parent 386069c8a4
commit fff8719fdf
2 changed files with 10 additions and 11 deletions

View File

@ -33,16 +33,16 @@ class SearchVideo extends BaseSearchContent {
/// Initialize a [SearchVideo] instance.
const SearchVideo(
this.id,
this.title,
this.author,
this.description,
this.duration,
this.viewCount,
this.thumbnails,
this.uploadDate,
this.id,
this.title,
this.author,
this.description,
this.duration,
this.viewCount,
this.thumbnails,
this.uploadDate,
this.isLive // ignore: avoid_positional_boolean_parameters
);
);
@override
String toString() => '(Video) $title ($id)';

View File

@ -12,8 +12,7 @@ void main() {
});
test('Search a youtube video from the api', () async {
var videos =
await yt.search.getVideos('undead corporation megalomania');
var videos = await yt.search.getVideos('undead corporation megalomania');
expect(videos, isNotEmpty);
});