diff --git a/lib/src/channels/channel.freezed.dart b/lib/src/channels/channel.freezed.dart index 825094c..4263f34 100644 --- a/lib/src/channels/channel.freezed.dart +++ b/lib/src/channels/channel.freezed.dart @@ -184,16 +184,20 @@ class _$_Channel extends _Channel { return identical(this, other) || (other.runtimeType == runtimeType && other is _Channel && - (identical(other.id, id) || other.id == id) && - (identical(other.title, title) || other.title == title) && - (identical(other.logoUrl, logoUrl) || other.logoUrl == logoUrl) && - (identical(other.subscribersCount, subscribersCount) || - other.subscribersCount == subscribersCount)); + const DeepCollectionEquality().equals(other.id, id) && + const DeepCollectionEquality().equals(other.title, title) && + const DeepCollectionEquality().equals(other.logoUrl, logoUrl) && + const DeepCollectionEquality() + .equals(other.subscribersCount, subscribersCount)); } @override - int get hashCode => - Object.hash(runtimeType, id, title, logoUrl, subscribersCount); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(id), + const DeepCollectionEquality().hash(title), + const DeepCollectionEquality().hash(logoUrl), + const DeepCollectionEquality().hash(subscribersCount)); @JsonKey(ignore: true) @override diff --git a/lib/src/channels/channel_about.freezed.dart b/lib/src/channels/channel_about.freezed.dart index dee40f4..78638b7 100644 --- a/lib/src/channels/channel_about.freezed.dart +++ b/lib/src/channels/channel_about.freezed.dart @@ -251,16 +251,14 @@ class _$_ChannelAbout implements _ChannelAbout { return identical(this, other) || (other.runtimeType == runtimeType && other is _ChannelAbout && - (identical(other.description, description) || - other.description == description) && - (identical(other.viewCount, viewCount) || - other.viewCount == viewCount) && - (identical(other.joinDate, joinDate) || - other.joinDate == joinDate) && - (identical(other.title, title) || other.title == title) && + const DeepCollectionEquality() + .equals(other.description, description) && + const DeepCollectionEquality().equals(other.viewCount, viewCount) && + const DeepCollectionEquality().equals(other.joinDate, joinDate) && + const DeepCollectionEquality().equals(other.title, title) && const DeepCollectionEquality() .equals(other.thumbnails, thumbnails) && - (identical(other.country, country) || other.country == country) && + const DeepCollectionEquality().equals(other.country, country) && const DeepCollectionEquality() .equals(other.channelLinks, channelLinks)); } @@ -268,12 +266,12 @@ class _$_ChannelAbout implements _ChannelAbout { @override int get hashCode => Object.hash( runtimeType, - description, - viewCount, - joinDate, - title, + const DeepCollectionEquality().hash(description), + const DeepCollectionEquality().hash(viewCount), + const DeepCollectionEquality().hash(joinDate), + const DeepCollectionEquality().hash(title), const DeepCollectionEquality().hash(thumbnails), - country, + const DeepCollectionEquality().hash(country), const DeepCollectionEquality().hash(channelLinks)); @JsonKey(ignore: true) diff --git a/lib/src/channels/channel_id.freezed.dart b/lib/src/channels/channel_id.freezed.dart index ab5c650..4b7b0c8 100644 --- a/lib/src/channels/channel_id.freezed.dart +++ b/lib/src/channels/channel_id.freezed.dart @@ -111,11 +111,12 @@ class _$_ChannelId extends _ChannelId { return identical(this, other) || (other.runtimeType == runtimeType && other is _ChannelId && - (identical(other.value, value) || other.value == value)); + const DeepCollectionEquality().equals(other.value, value)); } @override - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(value)); @JsonKey(ignore: true) @override diff --git a/lib/src/channels/channel_link.freezed.dart b/lib/src/channels/channel_link.freezed.dart index 3b1ec35..1ca60ee 100644 --- a/lib/src/channels/channel_link.freezed.dart +++ b/lib/src/channels/channel_link.freezed.dart @@ -157,13 +157,17 @@ class _$_ChannelLink implements _ChannelLink { return identical(this, other) || (other.runtimeType == runtimeType && other is _ChannelLink && - (identical(other.title, title) || other.title == title) && - (identical(other.url, url) || other.url == url) && - (identical(other.icon, icon) || other.icon == icon)); + const DeepCollectionEquality().equals(other.title, title) && + const DeepCollectionEquality().equals(other.url, url) && + const DeepCollectionEquality().equals(other.icon, icon)); } @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) @override diff --git a/lib/src/channels/channel_video.freezed.dart b/lib/src/channels/channel_video.freezed.dart index 2690d7b..06b98bb 100644 --- a/lib/src/channels/channel_video.freezed.dart +++ b/lib/src/channels/channel_video.freezed.dart @@ -237,22 +237,28 @@ class _$_ChannelVideo implements _ChannelVideo { return identical(this, other) || (other.runtimeType == runtimeType && other is _ChannelVideo && - (identical(other.videoId, videoId) || other.videoId == videoId) && - (identical(other.videoTitle, videoTitle) || - other.videoTitle == videoTitle) && - (identical(other.videoDuration, videoDuration) || - other.videoDuration == videoDuration) && - (identical(other.videoThumbnail, videoThumbnail) || - other.videoThumbnail == videoThumbnail) && - (identical(other.videoUploadDate, videoUploadDate) || - other.videoUploadDate == videoUploadDate) && - (identical(other.videoViews, videoViews) || - other.videoViews == videoViews)); + const DeepCollectionEquality().equals(other.videoId, videoId) && + const DeepCollectionEquality() + .equals(other.videoTitle, videoTitle) && + const DeepCollectionEquality() + .equals(other.videoDuration, videoDuration) && + const DeepCollectionEquality() + .equals(other.videoThumbnail, videoThumbnail) && + const DeepCollectionEquality() + .equals(other.videoUploadDate, videoUploadDate) && + const DeepCollectionEquality() + .equals(other.videoViews, videoViews)); } @override - int get hashCode => Object.hash(runtimeType, videoId, videoTitle, - videoDuration, videoThumbnail, videoUploadDate, videoViews); + int get hashCode => Object.hash( + 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) @override diff --git a/lib/src/channels/username.freezed.dart b/lib/src/channels/username.freezed.dart index e9084d6..894ec81 100644 --- a/lib/src/channels/username.freezed.dart +++ b/lib/src/channels/username.freezed.dart @@ -115,11 +115,12 @@ class _$_Username implements _Username { return identical(this, other) || (other.runtimeType == runtimeType && other is _Username && - (identical(other.value, value) || other.value == value)); + const DeepCollectionEquality().equals(other.value, value)); } @override - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(value)); @JsonKey(ignore: true) @override diff --git a/lib/src/common/engagement.freezed.dart b/lib/src/common/engagement.freezed.dart index 070822a..2de0932 100644 --- a/lib/src/common/engagement.freezed.dart +++ b/lib/src/common/engagement.freezed.dart @@ -155,17 +155,18 @@ class _$_Engagement extends _Engagement { return identical(this, other) || (other.runtimeType == runtimeType && other is _Engagement && - (identical(other.viewCount, viewCount) || - other.viewCount == viewCount) && - (identical(other.likeCount, likeCount) || - other.likeCount == likeCount) && - (identical(other.dislikeCount, dislikeCount) || - other.dislikeCount == dislikeCount)); + const DeepCollectionEquality().equals(other.viewCount, viewCount) && + const DeepCollectionEquality().equals(other.likeCount, likeCount) && + const DeepCollectionEquality() + .equals(other.dislikeCount, dislikeCount)); } @override - int get hashCode => - Object.hash(runtimeType, viewCount, likeCount, dislikeCount); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(viewCount), + const DeepCollectionEquality().hash(likeCount), + const DeepCollectionEquality().hash(dislikeCount)); @JsonKey(ignore: true) @override diff --git a/lib/src/common/thumbnail.freezed.dart b/lib/src/common/thumbnail.freezed.dart index b9af4fd..4170126 100644 --- a/lib/src/common/thumbnail.freezed.dart +++ b/lib/src/common/thumbnail.freezed.dart @@ -152,13 +152,17 @@ class _$_Thumbnail implements _Thumbnail { return identical(this, other) || (other.runtimeType == runtimeType && other is _Thumbnail && - (identical(other.url, url) || other.url == url) && - (identical(other.height, height) || other.height == height) && - (identical(other.width, width) || other.width == width)); + const DeepCollectionEquality().equals(other.url, url) && + const DeepCollectionEquality().equals(other.height, height) && + const DeepCollectionEquality().equals(other.width, width)); } @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) @override diff --git a/lib/src/common/thumbnail_set.freezed.dart b/lib/src/common/thumbnail_set.freezed.dart index e6dd5d8..0f75cc8 100644 --- a/lib/src/common/thumbnail_set.freezed.dart +++ b/lib/src/common/thumbnail_set.freezed.dart @@ -119,11 +119,12 @@ class _$_ThumbnailSet extends _ThumbnailSet { return identical(this, other) || (other.runtimeType == runtimeType && other is _ThumbnailSet && - (identical(other.videoId, videoId) || other.videoId == videoId)); + const DeepCollectionEquality().equals(other.videoId, videoId)); } @override - int get hashCode => Object.hash(runtimeType, videoId); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(videoId)); @JsonKey(ignore: true) @override diff --git a/lib/src/playlists/playlist.freezed.dart b/lib/src/playlists/playlist.freezed.dart index 2391aeb..18c5c2a 100644 --- a/lib/src/playlists/playlist.freezed.dart +++ b/lib/src/playlists/playlist.freezed.dart @@ -276,22 +276,29 @@ class _$_Playlist extends _Playlist { return identical(this, other) || (other.runtimeType == runtimeType && other is _Playlist && - (identical(other.id, id) || other.id == id) && - (identical(other.title, title) || other.title == title) && - (identical(other.author, author) || other.author == author) && - (identical(other.description, description) || - other.description == description) && - (identical(other.thumbnails, thumbnails) || - other.thumbnails == thumbnails) && - (identical(other.engagement, engagement) || - other.engagement == engagement) && - (identical(other.videoCount, videoCount) || - other.videoCount == videoCount)); + const DeepCollectionEquality().equals(other.id, id) && + const DeepCollectionEquality().equals(other.title, title) && + const DeepCollectionEquality().equals(other.author, author) && + const DeepCollectionEquality() + .equals(other.description, description) && + const DeepCollectionEquality() + .equals(other.thumbnails, thumbnails) && + const DeepCollectionEquality() + .equals(other.engagement, engagement) && + const DeepCollectionEquality() + .equals(other.videoCount, videoCount)); } @override - int get hashCode => Object.hash(runtimeType, id, title, author, description, - thumbnails, engagement, videoCount); + int get hashCode => Object.hash( + 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) @override diff --git a/lib/src/playlists/playlist_id.freezed.dart b/lib/src/playlists/playlist_id.freezed.dart index b0e97c1..4ad351d 100644 --- a/lib/src/playlists/playlist_id.freezed.dart +++ b/lib/src/playlists/playlist_id.freezed.dart @@ -113,11 +113,12 @@ class _$_PlaylistId extends _PlaylistId { return identical(this, other) || (other.runtimeType == runtimeType && other is _PlaylistId && - (identical(other.value, value) || other.value == value)); + const DeepCollectionEquality().equals(other.value, value)); } @override - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(value)); @JsonKey(ignore: true) @override diff --git a/lib/src/search/search_channel.freezed.dart b/lib/src/search/search_channel.freezed.dart index 853324e..1a1fbc5 100644 --- a/lib/src/search/search_channel.freezed.dart +++ b/lib/src/search/search_channel.freezed.dart @@ -191,17 +191,21 @@ class _$_SearchChannel with BaseSearchContent implements _SearchChannel { return identical(this, other) || (other.runtimeType == runtimeType && other is _SearchChannel && - (identical(other.id, id) || other.id == id) && - (identical(other.name, name) || other.name == name) && - (identical(other.description, description) || - other.description == description) && - (identical(other.videoCount, videoCount) || - other.videoCount == videoCount)); + const DeepCollectionEquality().equals(other.id, id) && + const DeepCollectionEquality().equals(other.name, name) && + const DeepCollectionEquality() + .equals(other.description, description) && + const DeepCollectionEquality() + .equals(other.videoCount, videoCount)); } @override - int get hashCode => - Object.hash(runtimeType, id, name, description, videoCount); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(id), + const DeepCollectionEquality().hash(name), + const DeepCollectionEquality().hash(description), + const DeepCollectionEquality().hash(videoCount)); @JsonKey(ignore: true) @override diff --git a/lib/src/search/search_playlist.freezed.dart b/lib/src/search/search_playlist.freezed.dart index 9295e8c..34a70b3 100644 --- a/lib/src/search/search_playlist.freezed.dart +++ b/lib/src/search/search_playlist.freezed.dart @@ -198,19 +198,23 @@ class _$_SearchPlaylist with BaseSearchContent implements _SearchPlaylist { return identical(this, other) || (other.runtimeType == runtimeType && other is _SearchPlaylist && - (identical(other.playlistId, playlistId) || - other.playlistId == playlistId) && - (identical(other.playlistTitle, playlistTitle) || - other.playlistTitle == playlistTitle) && - (identical(other.playlistVideoCount, playlistVideoCount) || - other.playlistVideoCount == playlistVideoCount) && + const DeepCollectionEquality() + .equals(other.playlistId, playlistId) && + const DeepCollectionEquality() + .equals(other.playlistTitle, playlistTitle) && + const DeepCollectionEquality() + .equals(other.playlistVideoCount, playlistVideoCount) && const DeepCollectionEquality() .equals(other.thumbnails, thumbnails)); } @override - int get hashCode => Object.hash(runtimeType, playlistId, playlistTitle, - playlistVideoCount, const DeepCollectionEquality().hash(thumbnails)); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(playlistId), + const DeepCollectionEquality().hash(playlistTitle), + const DeepCollectionEquality().hash(playlistVideoCount), + const DeepCollectionEquality().hash(thumbnails)); @JsonKey(ignore: true) @override diff --git a/lib/src/search/search_video.freezed.dart b/lib/src/search/search_video.freezed.dart index ddf02c0..cd41764 100644 --- a/lib/src/search/search_video.freezed.dart +++ b/lib/src/search/search_video.freezed.dart @@ -336,37 +336,34 @@ class _$_SearchVideo with BaseSearchContent implements _SearchVideo { return identical(this, other) || (other.runtimeType == runtimeType && other is _SearchVideo && - (identical(other.id, id) || other.id == id) && - (identical(other.title, title) || other.title == title) && - (identical(other.author, author) || other.author == author) && - (identical(other.description, description) || - other.description == description) && - (identical(other.duration, duration) || - other.duration == duration) && - (identical(other.viewCount, viewCount) || - other.viewCount == viewCount) && + const DeepCollectionEquality().equals(other.id, id) && + const DeepCollectionEquality().equals(other.title, title) && + const DeepCollectionEquality().equals(other.author, author) && + const DeepCollectionEquality() + .equals(other.description, description) && + const DeepCollectionEquality().equals(other.duration, duration) && + const DeepCollectionEquality().equals(other.viewCount, viewCount) && const DeepCollectionEquality() .equals(other.thumbnails, thumbnails) && - (identical(other.uploadDate, uploadDate) || - other.uploadDate == uploadDate) && - (identical(other.isLive, isLive) || other.isLive == isLive) && - (identical(other.channelId, channelId) || - other.channelId == channelId)); + const DeepCollectionEquality() + .equals(other.uploadDate, uploadDate) && + const DeepCollectionEquality().equals(other.isLive, isLive) && + const DeepCollectionEquality().equals(other.channelId, channelId)); } @override int get hashCode => Object.hash( runtimeType, - id, - title, - author, - description, - duration, - viewCount, + const DeepCollectionEquality().hash(id), + const DeepCollectionEquality().hash(title), + const DeepCollectionEquality().hash(author), + const DeepCollectionEquality().hash(description), + const DeepCollectionEquality().hash(duration), + const DeepCollectionEquality().hash(viewCount), const DeepCollectionEquality().hash(thumbnails), - uploadDate, - isLive, - channelId); + const DeepCollectionEquality().hash(uploadDate), + const DeepCollectionEquality().hash(isLive), + const DeepCollectionEquality().hash(channelId)); @JsonKey(ignore: true) @override diff --git a/lib/src/videos/closed_captions/closed_caption_track_info.freezed.dart b/lib/src/videos/closed_captions/closed_caption_track_info.freezed.dart index d4ec33a..25b1929 100644 --- a/lib/src/videos/closed_captions/closed_caption_track_info.freezed.dart +++ b/lib/src/videos/closed_captions/closed_caption_track_info.freezed.dart @@ -192,7 +192,7 @@ class _$_ClosedCaptionTrackInfo extends _ClosedCaptionTrackInfo { /// Language of the associated track. final Language language; - @JsonKey(defaultValue: false) + @JsonKey() @override /// Whether the associated track was automatically generated. @@ -207,17 +207,20 @@ class _$_ClosedCaptionTrackInfo extends _ClosedCaptionTrackInfo { return identical(this, other) || (other.runtimeType == runtimeType && other is _ClosedCaptionTrackInfo && - (identical(other.url, url) || other.url == url) && - (identical(other.language, language) || - other.language == language) && - (identical(other.isAutoGenerated, isAutoGenerated) || - other.isAutoGenerated == isAutoGenerated) && - (identical(other.format, format) || other.format == format)); + const DeepCollectionEquality().equals(other.url, url) && + const DeepCollectionEquality().equals(other.language, language) && + const DeepCollectionEquality() + .equals(other.isAutoGenerated, isAutoGenerated) && + const DeepCollectionEquality().equals(other.format, format)); } @override - int get hashCode => - Object.hash(runtimeType, url, language, isAutoGenerated, format); + int get hashCode => Object.hash( + runtimeType, + const DeepCollectionEquality().hash(url), + const DeepCollectionEquality().hash(language), + const DeepCollectionEquality().hash(isAutoGenerated), + const DeepCollectionEquality().hash(format)); @JsonKey(ignore: true) @override diff --git a/lib/src/videos/closed_captions/language.freezed.dart b/lib/src/videos/closed_captions/language.freezed.dart index e23176e..613614a 100644 --- a/lib/src/videos/closed_captions/language.freezed.dart +++ b/lib/src/videos/closed_captions/language.freezed.dart @@ -145,12 +145,15 @@ class _$_Language extends _Language { return identical(this, other) || (other.runtimeType == runtimeType && other is _Language && - (identical(other.code, code) || other.code == code) && - (identical(other.name, name) || other.name == name)); + const DeepCollectionEquality().equals(other.code, code) && + const DeepCollectionEquality().equals(other.name, name)); } @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) @override diff --git a/lib/src/videos/comments/comment.freezed.dart b/lib/src/videos/comments/comment.freezed.dart index 9a061d4..5d61ed0 100644 --- a/lib/src/videos/comments/comment.freezed.dart +++ b/lib/src/videos/comments/comment.freezed.dart @@ -290,25 +290,30 @@ class _$_Comment implements _Comment { return identical(this, other) || (other.runtimeType == runtimeType && other is _Comment && - (identical(other.author, author) || other.author == author) && - (identical(other.channelId, channelId) || - other.channelId == channelId) && - (identical(other.text, text) || other.text == text) && - (identical(other.likeCount, likeCount) || - other.likeCount == likeCount) && - (identical(other.publishedTime, publishedTime) || - other.publishedTime == publishedTime) && - (identical(other.replyCount, replyCount) || - other.replyCount == replyCount) && - (identical(other.isHearted, isHearted) || - other.isHearted == isHearted) && - (identical(other.continuation, continuation) || - other.continuation == continuation)); + const DeepCollectionEquality().equals(other.author, author) && + const DeepCollectionEquality().equals(other.channelId, channelId) && + const DeepCollectionEquality().equals(other.text, text) && + const DeepCollectionEquality().equals(other.likeCount, likeCount) && + const DeepCollectionEquality() + .equals(other.publishedTime, publishedTime) && + const DeepCollectionEquality() + .equals(other.replyCount, replyCount) && + const DeepCollectionEquality().equals(other.isHearted, isHearted) && + const DeepCollectionEquality() + .equals(other.continuation, continuation)); } @override - int get hashCode => Object.hash(runtimeType, author, channelId, text, - likeCount, publishedTime, replyCount, isHearted, continuation); + int get hashCode => Object.hash( + 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) @override diff --git a/lib/src/videos/streams/bitrate.freezed.dart b/lib/src/videos/streams/bitrate.freezed.dart index 12ce6dd..040e90d 100644 --- a/lib/src/videos/streams/bitrate.freezed.dart +++ b/lib/src/videos/streams/bitrate.freezed.dart @@ -122,12 +122,13 @@ class _$_Bitrate extends _Bitrate with Comparable { return identical(this, other) || (other.runtimeType == runtimeType && other is _Bitrate && - (identical(other.bitsPerSecond, bitsPerSecond) || - other.bitsPerSecond == bitsPerSecond)); + const DeepCollectionEquality() + .equals(other.bitsPerSecond, bitsPerSecond)); } @override - int get hashCode => Object.hash(runtimeType, bitsPerSecond); + int get hashCode => Object.hash( + runtimeType, const DeepCollectionEquality().hash(bitsPerSecond)); @JsonKey(ignore: true) @override diff --git a/lib/src/videos/streams/filesize.freezed.dart b/lib/src/videos/streams/filesize.freezed.dart index 512c2f8..83abe8d 100644 --- a/lib/src/videos/streams/filesize.freezed.dart +++ b/lib/src/videos/streams/filesize.freezed.dart @@ -123,12 +123,13 @@ class _$_FileSize extends _FileSize with Comparable { return identical(this, other) || (other.runtimeType == runtimeType && other is _FileSize && - (identical(other.totalBytes, totalBytes) || - other.totalBytes == totalBytes)); + const DeepCollectionEquality() + .equals(other.totalBytes, totalBytes)); } @override - int get hashCode => Object.hash(runtimeType, totalBytes); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(totalBytes)); @JsonKey(ignore: true) @override diff --git a/lib/src/videos/streams/framerate.freezed.dart b/lib/src/videos/streams/framerate.freezed.dart index 205a0c7..125a16f 100644 --- a/lib/src/videos/streams/framerate.freezed.dart +++ b/lib/src/videos/streams/framerate.freezed.dart @@ -123,12 +123,13 @@ class _$_Framerate extends _Framerate { return identical(this, other) || (other.runtimeType == runtimeType && other is _Framerate && - (identical(other.framesPerSecond, framesPerSecond) || - other.framesPerSecond == framesPerSecond)); + const DeepCollectionEquality() + .equals(other.framesPerSecond, framesPerSecond)); } @override - int get hashCode => Object.hash(runtimeType, framesPerSecond); + int get hashCode => Object.hash( + runtimeType, const DeepCollectionEquality().hash(framesPerSecond)); @JsonKey(ignore: true) @override diff --git a/lib/src/videos/streams/stream_container.freezed.dart b/lib/src/videos/streams/stream_container.freezed.dart index d572803..23c6546 100644 --- a/lib/src/videos/streams/stream_container.freezed.dart +++ b/lib/src/videos/streams/stream_container.freezed.dart @@ -130,11 +130,12 @@ class _$_StreamContainer extends _StreamContainer { return identical(this, other) || (other.runtimeType == runtimeType && other is _StreamContainer && - (identical(other.name, name) || other.name == name)); + const DeepCollectionEquality().equals(other.name, name)); } @override - int get hashCode => Object.hash(runtimeType, name); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(name)); @JsonKey(ignore: true) @override diff --git a/lib/src/videos/video.freezed.dart b/lib/src/videos/video.freezed.dart index 306f8c2..6a70e3f 100644 --- a/lib/src/videos/video.freezed.dart +++ b/lib/src/videos/video.freezed.dart @@ -436,46 +436,42 @@ class _$_Video extends _Video { return identical(this, other) || (other.runtimeType == runtimeType && other is _Video && - (identical(other.id, id) || other.id == id) && - (identical(other.title, title) || other.title == title) && - (identical(other.author, author) || other.author == author) && - (identical(other.channelId, channelId) || - other.channelId == channelId) && - (identical(other.uploadDate, uploadDate) || - other.uploadDate == uploadDate) && - (identical(other.publishDate, publishDate) || - other.publishDate == publishDate) && - (identical(other.description, description) || - other.description == description) && - (identical(other.duration, duration) || - other.duration == duration) && - (identical(other.thumbnails, thumbnails) || - other.thumbnails == thumbnails) && - (identical(other.keywords, keywords) || - other.keywords == keywords) && - (identical(other.engagement, engagement) || - other.engagement == engagement) && - (identical(other.isLive, isLive) || other.isLive == isLive) && - (identical(other.watchPage, watchPage) || - other.watchPage == watchPage)); + const DeepCollectionEquality().equals(other.id, id) && + const DeepCollectionEquality().equals(other.title, title) && + const DeepCollectionEquality().equals(other.author, author) && + const DeepCollectionEquality().equals(other.channelId, channelId) && + const DeepCollectionEquality() + .equals(other.uploadDate, uploadDate) && + const DeepCollectionEquality() + .equals(other.publishDate, publishDate) && + const DeepCollectionEquality() + .equals(other.description, description) && + const DeepCollectionEquality().equals(other.duration, duration) && + const DeepCollectionEquality() + .equals(other.thumbnails, thumbnails) && + const DeepCollectionEquality().equals(other.keywords, keywords) && + const DeepCollectionEquality() + .equals(other.engagement, engagement) && + const DeepCollectionEquality().equals(other.isLive, isLive) && + const DeepCollectionEquality().equals(other.watchPage, watchPage)); } @override int get hashCode => Object.hash( runtimeType, - id, - title, - author, - channelId, - uploadDate, - publishDate, - description, - duration, - thumbnails, - keywords, - engagement, - isLive, - watchPage); + const DeepCollectionEquality().hash(id), + const DeepCollectionEquality().hash(title), + const DeepCollectionEquality().hash(author), + const DeepCollectionEquality().hash(channelId), + const DeepCollectionEquality().hash(uploadDate), + const DeepCollectionEquality().hash(publishDate), + const DeepCollectionEquality().hash(description), + const DeepCollectionEquality().hash(duration), + const DeepCollectionEquality().hash(thumbnails), + const DeepCollectionEquality().hash(keywords), + const DeepCollectionEquality().hash(engagement), + const DeepCollectionEquality().hash(isLive), + const DeepCollectionEquality().hash(watchPage)); @JsonKey(ignore: true) @override diff --git a/lib/src/videos/video_id.freezed.dart b/lib/src/videos/video_id.freezed.dart index 4bccb73..d7a53a5 100644 --- a/lib/src/videos/video_id.freezed.dart +++ b/lib/src/videos/video_id.freezed.dart @@ -109,11 +109,12 @@ class _$_VideoId extends _VideoId { return identical(this, other) || (other.runtimeType == runtimeType && other is _VideoId && - (identical(other.value, value) || other.value == value)); + const DeepCollectionEquality().equals(other.value, value)); } @override - int get hashCode => Object.hash(runtimeType, value); + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(value)); @JsonKey(ignore: true) @override diff --git a/pubspec.yaml b/pubspec.yaml index 8cd2790..82c680a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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. version: 1.10.8 -homepage: https://github.com/Hexer10/youtube_explode_dart +homepage: ^0.13.4 environment: sdk: '>=2.14.0 <3.0.0' dependencies: collection: ^1.15.0 - freezed_annotation: ^0.15.0 + freezed_annotation: ^1.1.0 html: ^0.15.0 - http: ^0.13.0 + http: ^0.13.4 http_parser: ^4.0.0 - json_annotation: ^4.3.0 - meta: ^1.3.0 - xml: ^5.0.2 + json_annotation: ^4.4.0 + meta: ^1.7.0 + xml: ^5.3.1 dev_dependencies: - build_runner: ^2.1.4 + build_runner: ^2.1.5 console: ^4.1.0 - freezed: ^0.15.1+1 + freezed: ^1.1.0 grinder: ^0.9.0 - json_serializable: ^6.0.1 - lint: ^1.7.2 - test: ^1.18.2 + json_serializable: ^6.1.1 + lint: ^1.8.1 + test: ^1.19.5