Merge pull request #182

Update all dependencies (include freezed)
This commit is contained in:
Mattia 2021-12-17 11:20:42 +01:00 committed by GitHub
commit 774f5a2de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 251 additions and 205 deletions

View File

@ -184,16 +184,20 @@ class _$_Channel extends _Channel {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Channel && other is _Channel &&
(identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other.id, id) &&
(identical(other.title, title) || other.title == title) && const DeepCollectionEquality().equals(other.title, title) &&
(identical(other.logoUrl, logoUrl) || other.logoUrl == logoUrl) && const DeepCollectionEquality().equals(other.logoUrl, logoUrl) &&
(identical(other.subscribersCount, subscribersCount) || const DeepCollectionEquality()
other.subscribersCount == subscribersCount)); .equals(other.subscribersCount, subscribersCount));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(
Object.hash(runtimeType, id, title, logoUrl, subscribersCount); runtimeType,
const DeepCollectionEquality().hash(id),
const DeepCollectionEquality().hash(title),
const DeepCollectionEquality().hash(logoUrl),
const DeepCollectionEquality().hash(subscribersCount));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -251,16 +251,14 @@ class _$_ChannelAbout implements _ChannelAbout {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _ChannelAbout && other is _ChannelAbout &&
(identical(other.description, description) || const DeepCollectionEquality()
other.description == description) && .equals(other.description, description) &&
(identical(other.viewCount, viewCount) || const DeepCollectionEquality().equals(other.viewCount, viewCount) &&
other.viewCount == viewCount) && const DeepCollectionEquality().equals(other.joinDate, joinDate) &&
(identical(other.joinDate, joinDate) || const DeepCollectionEquality().equals(other.title, title) &&
other.joinDate == joinDate) &&
(identical(other.title, title) || other.title == title) &&
const DeepCollectionEquality() const DeepCollectionEquality()
.equals(other.thumbnails, thumbnails) && .equals(other.thumbnails, thumbnails) &&
(identical(other.country, country) || other.country == country) && const DeepCollectionEquality().equals(other.country, country) &&
const DeepCollectionEquality() const DeepCollectionEquality()
.equals(other.channelLinks, channelLinks)); .equals(other.channelLinks, channelLinks));
} }
@ -268,12 +266,12 @@ class _$_ChannelAbout implements _ChannelAbout {
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(
runtimeType, runtimeType,
description, const DeepCollectionEquality().hash(description),
viewCount, const DeepCollectionEquality().hash(viewCount),
joinDate, const DeepCollectionEquality().hash(joinDate),
title, const DeepCollectionEquality().hash(title),
const DeepCollectionEquality().hash(thumbnails), const DeepCollectionEquality().hash(thumbnails),
country, const DeepCollectionEquality().hash(country),
const DeepCollectionEquality().hash(channelLinks)); const DeepCollectionEquality().hash(channelLinks));
@JsonKey(ignore: true) @JsonKey(ignore: true)

View File

@ -111,11 +111,12 @@ class _$_ChannelId extends _ChannelId {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _ChannelId && other is _ChannelId &&
(identical(other.value, value) || other.value == value)); const DeepCollectionEquality().equals(other.value, value));
} }
@override @override
int get hashCode => Object.hash(runtimeType, value); int get hashCode =>
Object.hash(runtimeType, const DeepCollectionEquality().hash(value));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -157,13 +157,17 @@ class _$_ChannelLink implements _ChannelLink {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _ChannelLink && other is _ChannelLink &&
(identical(other.title, title) || other.title == title) && const DeepCollectionEquality().equals(other.title, title) &&
(identical(other.url, url) || other.url == url) && const DeepCollectionEquality().equals(other.url, url) &&
(identical(other.icon, icon) || other.icon == icon)); const DeepCollectionEquality().equals(other.icon, icon));
} }
@override @override
int get hashCode => Object.hash(runtimeType, title, url, icon); int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(title),
const DeepCollectionEquality().hash(url),
const DeepCollectionEquality().hash(icon));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -237,22 +237,28 @@ class _$_ChannelVideo implements _ChannelVideo {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _ChannelVideo && other is _ChannelVideo &&
(identical(other.videoId, videoId) || other.videoId == videoId) && const DeepCollectionEquality().equals(other.videoId, videoId) &&
(identical(other.videoTitle, videoTitle) || const DeepCollectionEquality()
other.videoTitle == videoTitle) && .equals(other.videoTitle, videoTitle) &&
(identical(other.videoDuration, videoDuration) || const DeepCollectionEquality()
other.videoDuration == videoDuration) && .equals(other.videoDuration, videoDuration) &&
(identical(other.videoThumbnail, videoThumbnail) || const DeepCollectionEquality()
other.videoThumbnail == videoThumbnail) && .equals(other.videoThumbnail, videoThumbnail) &&
(identical(other.videoUploadDate, videoUploadDate) || const DeepCollectionEquality()
other.videoUploadDate == videoUploadDate) && .equals(other.videoUploadDate, videoUploadDate) &&
(identical(other.videoViews, videoViews) || const DeepCollectionEquality()
other.videoViews == videoViews)); .equals(other.videoViews, videoViews));
} }
@override @override
int get hashCode => Object.hash(runtimeType, videoId, videoTitle, int get hashCode => Object.hash(
videoDuration, videoThumbnail, videoUploadDate, videoViews); runtimeType,
const DeepCollectionEquality().hash(videoId),
const DeepCollectionEquality().hash(videoTitle),
const DeepCollectionEquality().hash(videoDuration),
const DeepCollectionEquality().hash(videoThumbnail),
const DeepCollectionEquality().hash(videoUploadDate),
const DeepCollectionEquality().hash(videoViews));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -115,11 +115,12 @@ class _$_Username implements _Username {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Username && other is _Username &&
(identical(other.value, value) || other.value == value)); const DeepCollectionEquality().equals(other.value, value));
} }
@override @override
int get hashCode => Object.hash(runtimeType, value); int get hashCode =>
Object.hash(runtimeType, const DeepCollectionEquality().hash(value));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -155,17 +155,18 @@ class _$_Engagement extends _Engagement {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Engagement && other is _Engagement &&
(identical(other.viewCount, viewCount) || const DeepCollectionEquality().equals(other.viewCount, viewCount) &&
other.viewCount == viewCount) && const DeepCollectionEquality().equals(other.likeCount, likeCount) &&
(identical(other.likeCount, likeCount) || const DeepCollectionEquality()
other.likeCount == likeCount) && .equals(other.dislikeCount, dislikeCount));
(identical(other.dislikeCount, dislikeCount) ||
other.dislikeCount == dislikeCount));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(
Object.hash(runtimeType, viewCount, likeCount, dislikeCount); runtimeType,
const DeepCollectionEquality().hash(viewCount),
const DeepCollectionEquality().hash(likeCount),
const DeepCollectionEquality().hash(dislikeCount));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -152,13 +152,17 @@ class _$_Thumbnail implements _Thumbnail {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Thumbnail && other is _Thumbnail &&
(identical(other.url, url) || other.url == url) && const DeepCollectionEquality().equals(other.url, url) &&
(identical(other.height, height) || other.height == height) && const DeepCollectionEquality().equals(other.height, height) &&
(identical(other.width, width) || other.width == width)); const DeepCollectionEquality().equals(other.width, width));
} }
@override @override
int get hashCode => Object.hash(runtimeType, url, height, width); int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(url),
const DeepCollectionEquality().hash(height),
const DeepCollectionEquality().hash(width));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -119,11 +119,12 @@ class _$_ThumbnailSet extends _ThumbnailSet {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _ThumbnailSet && other is _ThumbnailSet &&
(identical(other.videoId, videoId) || other.videoId == videoId)); const DeepCollectionEquality().equals(other.videoId, videoId));
} }
@override @override
int get hashCode => Object.hash(runtimeType, videoId); int get hashCode =>
Object.hash(runtimeType, const DeepCollectionEquality().hash(videoId));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -276,22 +276,29 @@ class _$_Playlist extends _Playlist {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Playlist && other is _Playlist &&
(identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other.id, id) &&
(identical(other.title, title) || other.title == title) && const DeepCollectionEquality().equals(other.title, title) &&
(identical(other.author, author) || other.author == author) && const DeepCollectionEquality().equals(other.author, author) &&
(identical(other.description, description) || const DeepCollectionEquality()
other.description == description) && .equals(other.description, description) &&
(identical(other.thumbnails, thumbnails) || const DeepCollectionEquality()
other.thumbnails == thumbnails) && .equals(other.thumbnails, thumbnails) &&
(identical(other.engagement, engagement) || const DeepCollectionEquality()
other.engagement == engagement) && .equals(other.engagement, engagement) &&
(identical(other.videoCount, videoCount) || const DeepCollectionEquality()
other.videoCount == videoCount)); .equals(other.videoCount, videoCount));
} }
@override @override
int get hashCode => Object.hash(runtimeType, id, title, author, description, int get hashCode => Object.hash(
thumbnails, engagement, videoCount); runtimeType,
const DeepCollectionEquality().hash(id),
const DeepCollectionEquality().hash(title),
const DeepCollectionEquality().hash(author),
const DeepCollectionEquality().hash(description),
const DeepCollectionEquality().hash(thumbnails),
const DeepCollectionEquality().hash(engagement),
const DeepCollectionEquality().hash(videoCount));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -113,11 +113,12 @@ class _$_PlaylistId extends _PlaylistId {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _PlaylistId && other is _PlaylistId &&
(identical(other.value, value) || other.value == value)); const DeepCollectionEquality().equals(other.value, value));
} }
@override @override
int get hashCode => Object.hash(runtimeType, value); int get hashCode =>
Object.hash(runtimeType, const DeepCollectionEquality().hash(value));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -191,17 +191,21 @@ class _$_SearchChannel with BaseSearchContent implements _SearchChannel {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _SearchChannel && other is _SearchChannel &&
(identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other.id, id) &&
(identical(other.name, name) || other.name == name) && const DeepCollectionEquality().equals(other.name, name) &&
(identical(other.description, description) || const DeepCollectionEquality()
other.description == description) && .equals(other.description, description) &&
(identical(other.videoCount, videoCount) || const DeepCollectionEquality()
other.videoCount == videoCount)); .equals(other.videoCount, videoCount));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(
Object.hash(runtimeType, id, name, description, videoCount); runtimeType,
const DeepCollectionEquality().hash(id),
const DeepCollectionEquality().hash(name),
const DeepCollectionEquality().hash(description),
const DeepCollectionEquality().hash(videoCount));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -198,19 +198,23 @@ class _$_SearchPlaylist with BaseSearchContent implements _SearchPlaylist {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _SearchPlaylist && other is _SearchPlaylist &&
(identical(other.playlistId, playlistId) || const DeepCollectionEquality()
other.playlistId == playlistId) && .equals(other.playlistId, playlistId) &&
(identical(other.playlistTitle, playlistTitle) || const DeepCollectionEquality()
other.playlistTitle == playlistTitle) && .equals(other.playlistTitle, playlistTitle) &&
(identical(other.playlistVideoCount, playlistVideoCount) || const DeepCollectionEquality()
other.playlistVideoCount == playlistVideoCount) && .equals(other.playlistVideoCount, playlistVideoCount) &&
const DeepCollectionEquality() const DeepCollectionEquality()
.equals(other.thumbnails, thumbnails)); .equals(other.thumbnails, thumbnails));
} }
@override @override
int get hashCode => Object.hash(runtimeType, playlistId, playlistTitle, int get hashCode => Object.hash(
playlistVideoCount, const DeepCollectionEquality().hash(thumbnails)); runtimeType,
const DeepCollectionEquality().hash(playlistId),
const DeepCollectionEquality().hash(playlistTitle),
const DeepCollectionEquality().hash(playlistVideoCount),
const DeepCollectionEquality().hash(thumbnails));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -336,37 +336,34 @@ class _$_SearchVideo with BaseSearchContent implements _SearchVideo {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _SearchVideo && other is _SearchVideo &&
(identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other.id, id) &&
(identical(other.title, title) || other.title == title) && const DeepCollectionEquality().equals(other.title, title) &&
(identical(other.author, author) || other.author == author) && const DeepCollectionEquality().equals(other.author, author) &&
(identical(other.description, description) || const DeepCollectionEquality()
other.description == description) && .equals(other.description, description) &&
(identical(other.duration, duration) || const DeepCollectionEquality().equals(other.duration, duration) &&
other.duration == duration) && const DeepCollectionEquality().equals(other.viewCount, viewCount) &&
(identical(other.viewCount, viewCount) ||
other.viewCount == viewCount) &&
const DeepCollectionEquality() const DeepCollectionEquality()
.equals(other.thumbnails, thumbnails) && .equals(other.thumbnails, thumbnails) &&
(identical(other.uploadDate, uploadDate) || const DeepCollectionEquality()
other.uploadDate == uploadDate) && .equals(other.uploadDate, uploadDate) &&
(identical(other.isLive, isLive) || other.isLive == isLive) && const DeepCollectionEquality().equals(other.isLive, isLive) &&
(identical(other.channelId, channelId) || const DeepCollectionEquality().equals(other.channelId, channelId));
other.channelId == channelId));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(
runtimeType, runtimeType,
id, const DeepCollectionEquality().hash(id),
title, const DeepCollectionEquality().hash(title),
author, const DeepCollectionEquality().hash(author),
description, const DeepCollectionEquality().hash(description),
duration, const DeepCollectionEquality().hash(duration),
viewCount, const DeepCollectionEquality().hash(viewCount),
const DeepCollectionEquality().hash(thumbnails), const DeepCollectionEquality().hash(thumbnails),
uploadDate, const DeepCollectionEquality().hash(uploadDate),
isLive, const DeepCollectionEquality().hash(isLive),
channelId); const DeepCollectionEquality().hash(channelId));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -192,7 +192,7 @@ class _$_ClosedCaptionTrackInfo extends _ClosedCaptionTrackInfo {
/// Language of the associated track. /// Language of the associated track.
final Language language; final Language language;
@JsonKey(defaultValue: false) @JsonKey()
@override @override
/// Whether the associated track was automatically generated. /// Whether the associated track was automatically generated.
@ -207,17 +207,20 @@ class _$_ClosedCaptionTrackInfo extends _ClosedCaptionTrackInfo {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _ClosedCaptionTrackInfo && other is _ClosedCaptionTrackInfo &&
(identical(other.url, url) || other.url == url) && const DeepCollectionEquality().equals(other.url, url) &&
(identical(other.language, language) || const DeepCollectionEquality().equals(other.language, language) &&
other.language == language) && const DeepCollectionEquality()
(identical(other.isAutoGenerated, isAutoGenerated) || .equals(other.isAutoGenerated, isAutoGenerated) &&
other.isAutoGenerated == isAutoGenerated) && const DeepCollectionEquality().equals(other.format, format));
(identical(other.format, format) || other.format == format));
} }
@override @override
int get hashCode => int get hashCode => Object.hash(
Object.hash(runtimeType, url, language, isAutoGenerated, format); runtimeType,
const DeepCollectionEquality().hash(url),
const DeepCollectionEquality().hash(language),
const DeepCollectionEquality().hash(isAutoGenerated),
const DeepCollectionEquality().hash(format));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -145,12 +145,15 @@ class _$_Language extends _Language {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Language && other is _Language &&
(identical(other.code, code) || other.code == code) && const DeepCollectionEquality().equals(other.code, code) &&
(identical(other.name, name) || other.name == name)); const DeepCollectionEquality().equals(other.name, name));
} }
@override @override
int get hashCode => Object.hash(runtimeType, code, name); int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(code),
const DeepCollectionEquality().hash(name));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -290,25 +290,30 @@ class _$_Comment implements _Comment {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Comment && other is _Comment &&
(identical(other.author, author) || other.author == author) && const DeepCollectionEquality().equals(other.author, author) &&
(identical(other.channelId, channelId) || const DeepCollectionEquality().equals(other.channelId, channelId) &&
other.channelId == channelId) && const DeepCollectionEquality().equals(other.text, text) &&
(identical(other.text, text) || other.text == text) && const DeepCollectionEquality().equals(other.likeCount, likeCount) &&
(identical(other.likeCount, likeCount) || const DeepCollectionEquality()
other.likeCount == likeCount) && .equals(other.publishedTime, publishedTime) &&
(identical(other.publishedTime, publishedTime) || const DeepCollectionEquality()
other.publishedTime == publishedTime) && .equals(other.replyCount, replyCount) &&
(identical(other.replyCount, replyCount) || const DeepCollectionEquality().equals(other.isHearted, isHearted) &&
other.replyCount == replyCount) && const DeepCollectionEquality()
(identical(other.isHearted, isHearted) || .equals(other.continuation, continuation));
other.isHearted == isHearted) &&
(identical(other.continuation, continuation) ||
other.continuation == continuation));
} }
@override @override
int get hashCode => Object.hash(runtimeType, author, channelId, text, int get hashCode => Object.hash(
likeCount, publishedTime, replyCount, isHearted, continuation); runtimeType,
const DeepCollectionEquality().hash(author),
const DeepCollectionEquality().hash(channelId),
const DeepCollectionEquality().hash(text),
const DeepCollectionEquality().hash(likeCount),
const DeepCollectionEquality().hash(publishedTime),
const DeepCollectionEquality().hash(replyCount),
const DeepCollectionEquality().hash(isHearted),
const DeepCollectionEquality().hash(continuation));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -122,12 +122,13 @@ class _$_Bitrate extends _Bitrate with Comparable<Bitrate> {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Bitrate && other is _Bitrate &&
(identical(other.bitsPerSecond, bitsPerSecond) || const DeepCollectionEquality()
other.bitsPerSecond == bitsPerSecond)); .equals(other.bitsPerSecond, bitsPerSecond));
} }
@override @override
int get hashCode => Object.hash(runtimeType, bitsPerSecond); int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(bitsPerSecond));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -123,12 +123,13 @@ class _$_FileSize extends _FileSize with Comparable<FileSize> {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _FileSize && other is _FileSize &&
(identical(other.totalBytes, totalBytes) || const DeepCollectionEquality()
other.totalBytes == totalBytes)); .equals(other.totalBytes, totalBytes));
} }
@override @override
int get hashCode => Object.hash(runtimeType, totalBytes); int get hashCode =>
Object.hash(runtimeType, const DeepCollectionEquality().hash(totalBytes));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -123,12 +123,13 @@ class _$_Framerate extends _Framerate {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Framerate && other is _Framerate &&
(identical(other.framesPerSecond, framesPerSecond) || const DeepCollectionEquality()
other.framesPerSecond == framesPerSecond)); .equals(other.framesPerSecond, framesPerSecond));
} }
@override @override
int get hashCode => Object.hash(runtimeType, framesPerSecond); int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(framesPerSecond));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -130,11 +130,12 @@ class _$_StreamContainer extends _StreamContainer {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _StreamContainer && other is _StreamContainer &&
(identical(other.name, name) || other.name == name)); const DeepCollectionEquality().equals(other.name, name));
} }
@override @override
int get hashCode => Object.hash(runtimeType, name); int get hashCode =>
Object.hash(runtimeType, const DeepCollectionEquality().hash(name));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -436,46 +436,42 @@ class _$_Video extends _Video {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _Video && other is _Video &&
(identical(other.id, id) || other.id == id) && const DeepCollectionEquality().equals(other.id, id) &&
(identical(other.title, title) || other.title == title) && const DeepCollectionEquality().equals(other.title, title) &&
(identical(other.author, author) || other.author == author) && const DeepCollectionEquality().equals(other.author, author) &&
(identical(other.channelId, channelId) || const DeepCollectionEquality().equals(other.channelId, channelId) &&
other.channelId == channelId) && const DeepCollectionEquality()
(identical(other.uploadDate, uploadDate) || .equals(other.uploadDate, uploadDate) &&
other.uploadDate == uploadDate) && const DeepCollectionEquality()
(identical(other.publishDate, publishDate) || .equals(other.publishDate, publishDate) &&
other.publishDate == publishDate) && const DeepCollectionEquality()
(identical(other.description, description) || .equals(other.description, description) &&
other.description == description) && const DeepCollectionEquality().equals(other.duration, duration) &&
(identical(other.duration, duration) || const DeepCollectionEquality()
other.duration == duration) && .equals(other.thumbnails, thumbnails) &&
(identical(other.thumbnails, thumbnails) || const DeepCollectionEquality().equals(other.keywords, keywords) &&
other.thumbnails == thumbnails) && const DeepCollectionEquality()
(identical(other.keywords, keywords) || .equals(other.engagement, engagement) &&
other.keywords == keywords) && const DeepCollectionEquality().equals(other.isLive, isLive) &&
(identical(other.engagement, engagement) || const DeepCollectionEquality().equals(other.watchPage, watchPage));
other.engagement == engagement) &&
(identical(other.isLive, isLive) || other.isLive == isLive) &&
(identical(other.watchPage, watchPage) ||
other.watchPage == watchPage));
} }
@override @override
int get hashCode => Object.hash( int get hashCode => Object.hash(
runtimeType, runtimeType,
id, const DeepCollectionEquality().hash(id),
title, const DeepCollectionEquality().hash(title),
author, const DeepCollectionEquality().hash(author),
channelId, const DeepCollectionEquality().hash(channelId),
uploadDate, const DeepCollectionEquality().hash(uploadDate),
publishDate, const DeepCollectionEquality().hash(publishDate),
description, const DeepCollectionEquality().hash(description),
duration, const DeepCollectionEquality().hash(duration),
thumbnails, const DeepCollectionEquality().hash(thumbnails),
keywords, const DeepCollectionEquality().hash(keywords),
engagement, const DeepCollectionEquality().hash(engagement),
isLive, const DeepCollectionEquality().hash(isLive),
watchPage); const DeepCollectionEquality().hash(watchPage));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -109,11 +109,12 @@ class _$_VideoId extends _VideoId {
return identical(this, other) || return identical(this, other) ||
(other.runtimeType == runtimeType && (other.runtimeType == runtimeType &&
other is _VideoId && other is _VideoId &&
(identical(other.value, value) || other.value == value)); const DeepCollectionEquality().equals(other.value, value));
} }
@override @override
int get hashCode => Object.hash(runtimeType, value); int get hashCode =>
Object.hash(runtimeType, const DeepCollectionEquality().hash(value));
@JsonKey(ignore: true) @JsonKey(ignore: true)
@override @override

View File

@ -2,26 +2,26 @@ name: youtube_explode_dart
description: A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key. description: A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key.
version: 1.10.8 version: 1.10.8
homepage: https://github.com/Hexer10/youtube_explode_dart homepage: ^0.13.4
environment: environment:
sdk: '>=2.14.0 <3.0.0' sdk: '>=2.14.0 <3.0.0'
dependencies: dependencies:
collection: ^1.15.0 collection: ^1.15.0
freezed_annotation: ^0.15.0 freezed_annotation: ^1.1.0
html: ^0.15.0 html: ^0.15.0
http: ^0.13.0 http: ^0.13.4
http_parser: ^4.0.0 http_parser: ^4.0.0
json_annotation: ^4.3.0 json_annotation: ^4.4.0
meta: ^1.3.0 meta: ^1.7.0
xml: ^5.0.2 xml: ^5.3.1
dev_dependencies: dev_dependencies:
build_runner: ^2.1.4 build_runner: ^2.1.5
console: ^4.1.0 console: ^4.1.0
freezed: ^0.15.1+1 freezed: ^1.1.0
grinder: ^0.9.0 grinder: ^0.9.0
json_serializable: ^6.0.1 json_serializable: ^6.1.1
lint: ^1.7.2 lint: ^1.8.1
test: ^1.18.2 test: ^1.19.5

View File

@ -36,15 +36,16 @@ void main() {
expect(video.thumbnails, isNotEmpty); expect(video.thumbnails, isNotEmpty);
}); });
test('Search with no results - old', () async { // Seems all search key also have result now, so hide this test case
var query = // test('Search with no results - old', () async {
// ignore: deprecated_member_use_from_same_package // var query =
await yt!.search.queryFromPage('g;jghEOGHJeguEPOUIhjegoUEHGOGHPSASG'); // // ignore: deprecated_member_use_from_same_package
expect(query.content, isEmpty); // await yt!.search.queryFromPage('g;jghEOGHJeguEPOUIhjegoUEHGOGHPSASG');
expect(query.relatedVideos, isEmpty); // expect(query.content, isEmpty);
var nextPage = await query.nextPage(); // expect(query.relatedVideos, isEmpty);
expect(nextPage, isNull); // var nextPage = await query.nextPage();
}); // expect(nextPage, isNull);
// });
test('Search youtube videos have thumbnails - old', () async { test('Search youtube videos have thumbnails - old', () async {
// ignore: deprecated_member_use_from_same_package // ignore: deprecated_member_use_from_same_package