mirror of
https://github.com/austinried/subtracks.git
synced 2026-03-28 15:22:44 +01:00
chore: upgrade to Flutter 3.24.5
At the time of writing the latest Flutter version.
This commit is contained in:
@@ -12,7 +12,7 @@ part of 'music.dart';
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
final _privateConstructorUsedError = UnsupportedError(
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
/// @nodoc
|
||||
mixin _$SourceId {
|
||||
@@ -62,21 +62,22 @@ class _$SourceIdCopyWithImpl<$Res, $Val extends SourceId>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SourceIdCopyWith<$Res> implements $SourceIdCopyWith<$Res> {
|
||||
factory _$$_SourceIdCopyWith(
|
||||
_$_SourceId value, $Res Function(_$_SourceId) then) =
|
||||
__$$_SourceIdCopyWithImpl<$Res>;
|
||||
abstract class _$$SourceIdImplCopyWith<$Res>
|
||||
implements $SourceIdCopyWith<$Res> {
|
||||
factory _$$SourceIdImplCopyWith(
|
||||
_$SourceIdImpl value, $Res Function(_$SourceIdImpl) then) =
|
||||
__$$SourceIdImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({int sourceId, String id});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SourceIdCopyWithImpl<$Res>
|
||||
extends _$SourceIdCopyWithImpl<$Res, _$_SourceId>
|
||||
implements _$$_SourceIdCopyWith<$Res> {
|
||||
__$$_SourceIdCopyWithImpl(
|
||||
_$_SourceId _value, $Res Function(_$_SourceId) _then)
|
||||
class __$$SourceIdImplCopyWithImpl<$Res>
|
||||
extends _$SourceIdCopyWithImpl<$Res, _$SourceIdImpl>
|
||||
implements _$$SourceIdImplCopyWith<$Res> {
|
||||
__$$SourceIdImplCopyWithImpl(
|
||||
_$SourceIdImpl _value, $Res Function(_$SourceIdImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -85,7 +86,7 @@ class __$$_SourceIdCopyWithImpl<$Res>
|
||||
Object? sourceId = null,
|
||||
Object? id = null,
|
||||
}) {
|
||||
return _then(_$_SourceId(
|
||||
return _then(_$SourceIdImpl(
|
||||
sourceId: null == sourceId
|
||||
? _value.sourceId
|
||||
: sourceId // ignore: cast_nullable_to_non_nullable
|
||||
@@ -100,8 +101,8 @@ class __$$_SourceIdCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_SourceId with DiagnosticableTreeMixin implements _SourceId {
|
||||
const _$_SourceId({required this.sourceId, required this.id});
|
||||
class _$SourceIdImpl with DiagnosticableTreeMixin implements _SourceId {
|
||||
const _$SourceIdImpl({required this.sourceId, required this.id});
|
||||
|
||||
@override
|
||||
final int sourceId;
|
||||
@@ -123,10 +124,10 @@ class _$_SourceId with DiagnosticableTreeMixin implements _SourceId {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_SourceId &&
|
||||
other is _$SourceIdImpl &&
|
||||
(identical(other.sourceId, sourceId) ||
|
||||
other.sourceId == sourceId) &&
|
||||
(identical(other.id, id) || other.id == id));
|
||||
@@ -138,13 +139,13 @@ class _$_SourceId with DiagnosticableTreeMixin implements _SourceId {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_SourceIdCopyWith<_$_SourceId> get copyWith =>
|
||||
__$$_SourceIdCopyWithImpl<_$_SourceId>(this, _$identity);
|
||||
_$$SourceIdImplCopyWith<_$SourceIdImpl> get copyWith =>
|
||||
__$$SourceIdImplCopyWithImpl<_$SourceIdImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _SourceId implements SourceId {
|
||||
const factory _SourceId(
|
||||
{required final int sourceId, required final String id}) = _$_SourceId;
|
||||
{required final int sourceId, required final String id}) = _$SourceIdImpl;
|
||||
|
||||
@override
|
||||
int get sourceId;
|
||||
@@ -152,7 +153,7 @@ abstract class _SourceId implements SourceId {
|
||||
String get id;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SourceIdCopyWith<_$_SourceId> get copyWith =>
|
||||
_$$SourceIdImplCopyWith<_$SourceIdImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -205,22 +206,22 @@ class _$SourceIdSetCopyWithImpl<$Res, $Val extends SourceIdSet>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SourceIdSetCopyWith<$Res>
|
||||
abstract class _$$SourceIdSetImplCopyWith<$Res>
|
||||
implements $SourceIdSetCopyWith<$Res> {
|
||||
factory _$$_SourceIdSetCopyWith(
|
||||
_$_SourceIdSet value, $Res Function(_$_SourceIdSet) then) =
|
||||
__$$_SourceIdSetCopyWithImpl<$Res>;
|
||||
factory _$$SourceIdSetImplCopyWith(
|
||||
_$SourceIdSetImpl value, $Res Function(_$SourceIdSetImpl) then) =
|
||||
__$$SourceIdSetImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({int sourceId, ISet<String> ids});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SourceIdSetCopyWithImpl<$Res>
|
||||
extends _$SourceIdSetCopyWithImpl<$Res, _$_SourceIdSet>
|
||||
implements _$$_SourceIdSetCopyWith<$Res> {
|
||||
__$$_SourceIdSetCopyWithImpl(
|
||||
_$_SourceIdSet _value, $Res Function(_$_SourceIdSet) _then)
|
||||
class __$$SourceIdSetImplCopyWithImpl<$Res>
|
||||
extends _$SourceIdSetCopyWithImpl<$Res, _$SourceIdSetImpl>
|
||||
implements _$$SourceIdSetImplCopyWith<$Res> {
|
||||
__$$SourceIdSetImplCopyWithImpl(
|
||||
_$SourceIdSetImpl _value, $Res Function(_$SourceIdSetImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -229,7 +230,7 @@ class __$$_SourceIdSetCopyWithImpl<$Res>
|
||||
Object? sourceId = null,
|
||||
Object? ids = null,
|
||||
}) {
|
||||
return _then(_$_SourceIdSet(
|
||||
return _then(_$SourceIdSetImpl(
|
||||
sourceId: null == sourceId
|
||||
? _value.sourceId
|
||||
: sourceId // ignore: cast_nullable_to_non_nullable
|
||||
@@ -244,8 +245,8 @@ class __$$_SourceIdSetCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_SourceIdSet with DiagnosticableTreeMixin implements _SourceIdSet {
|
||||
const _$_SourceIdSet({required this.sourceId, required this.ids});
|
||||
class _$SourceIdSetImpl with DiagnosticableTreeMixin implements _SourceIdSet {
|
||||
const _$SourceIdSetImpl({required this.sourceId, required this.ids});
|
||||
|
||||
@override
|
||||
final int sourceId;
|
||||
@@ -267,10 +268,10 @@ class _$_SourceIdSet with DiagnosticableTreeMixin implements _SourceIdSet {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_SourceIdSet &&
|
||||
other is _$SourceIdSetImpl &&
|
||||
(identical(other.sourceId, sourceId) ||
|
||||
other.sourceId == sourceId) &&
|
||||
const DeepCollectionEquality().equals(other.ids, ids));
|
||||
@@ -283,14 +284,14 @@ class _$_SourceIdSet with DiagnosticableTreeMixin implements _SourceIdSet {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_SourceIdSetCopyWith<_$_SourceIdSet> get copyWith =>
|
||||
__$$_SourceIdSetCopyWithImpl<_$_SourceIdSet>(this, _$identity);
|
||||
_$$SourceIdSetImplCopyWith<_$SourceIdSetImpl> get copyWith =>
|
||||
__$$SourceIdSetImplCopyWithImpl<_$SourceIdSetImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _SourceIdSet implements SourceIdSet {
|
||||
const factory _SourceIdSet(
|
||||
{required final int sourceId,
|
||||
required final ISet<String> ids}) = _$_SourceIdSet;
|
||||
required final ISet<String> ids}) = _$SourceIdSetImpl;
|
||||
|
||||
@override
|
||||
int get sourceId;
|
||||
@@ -298,7 +299,7 @@ abstract class _SourceIdSet implements SourceIdSet {
|
||||
ISet<String> get ids;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SourceIdSetCopyWith<_$_SourceIdSet> get copyWith =>
|
||||
_$$SourceIdSetImplCopyWith<_$SourceIdSetImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -372,9 +373,10 @@ class _$ArtistCopyWithImpl<$Res, $Val extends Artist>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_ArtistCopyWith<$Res> implements $ArtistCopyWith<$Res> {
|
||||
factory _$$_ArtistCopyWith(_$_Artist value, $Res Function(_$_Artist) then) =
|
||||
__$$_ArtistCopyWithImpl<$Res>;
|
||||
abstract class _$$ArtistImplCopyWith<$Res> implements $ArtistCopyWith<$Res> {
|
||||
factory _$$ArtistImplCopyWith(
|
||||
_$ArtistImpl value, $Res Function(_$ArtistImpl) then) =
|
||||
__$$ArtistImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -386,10 +388,11 @@ abstract class _$$_ArtistCopyWith<$Res> implements $ArtistCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_ArtistCopyWithImpl<$Res>
|
||||
extends _$ArtistCopyWithImpl<$Res, _$_Artist>
|
||||
implements _$$_ArtistCopyWith<$Res> {
|
||||
__$$_ArtistCopyWithImpl(_$_Artist _value, $Res Function(_$_Artist) _then)
|
||||
class __$$ArtistImplCopyWithImpl<$Res>
|
||||
extends _$ArtistCopyWithImpl<$Res, _$ArtistImpl>
|
||||
implements _$$ArtistImplCopyWith<$Res> {
|
||||
__$$ArtistImplCopyWithImpl(
|
||||
_$ArtistImpl _value, $Res Function(_$ArtistImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -401,7 +404,7 @@ class __$$_ArtistCopyWithImpl<$Res>
|
||||
Object? albumCount = null,
|
||||
Object? starred = freezed,
|
||||
}) {
|
||||
return _then(_$_Artist(
|
||||
return _then(_$ArtistImpl(
|
||||
sourceId: null == sourceId
|
||||
? _value.sourceId
|
||||
: sourceId // ignore: cast_nullable_to_non_nullable
|
||||
@@ -428,8 +431,8 @@ class __$$_ArtistCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_Artist with DiagnosticableTreeMixin implements _Artist {
|
||||
const _$_Artist(
|
||||
class _$ArtistImpl with DiagnosticableTreeMixin implements _Artist {
|
||||
const _$ArtistImpl(
|
||||
{required this.sourceId,
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -465,10 +468,10 @@ class _$_Artist with DiagnosticableTreeMixin implements _Artist {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_Artist &&
|
||||
other is _$ArtistImpl &&
|
||||
(identical(other.sourceId, sourceId) ||
|
||||
other.sourceId == sourceId) &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
@@ -485,8 +488,8 @@ class _$_Artist with DiagnosticableTreeMixin implements _Artist {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_ArtistCopyWith<_$_Artist> get copyWith =>
|
||||
__$$_ArtistCopyWithImpl<_$_Artist>(this, _$identity);
|
||||
_$$ArtistImplCopyWith<_$ArtistImpl> get copyWith =>
|
||||
__$$ArtistImplCopyWithImpl<_$ArtistImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _Artist implements Artist {
|
||||
@@ -495,7 +498,7 @@ abstract class _Artist implements Artist {
|
||||
required final String id,
|
||||
required final String name,
|
||||
required final int albumCount,
|
||||
final DateTime? starred}) = _$_Artist;
|
||||
final DateTime? starred}) = _$ArtistImpl;
|
||||
|
||||
@override
|
||||
int get sourceId;
|
||||
@@ -509,7 +512,7 @@ abstract class _Artist implements Artist {
|
||||
DateTime? get starred;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_ArtistCopyWith<_$_Artist> get copyWith =>
|
||||
_$$ArtistImplCopyWith<_$ArtistImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -648,9 +651,10 @@ class _$AlbumCopyWithImpl<$Res, $Val extends Album>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_AlbumCopyWith<$Res> implements $AlbumCopyWith<$Res> {
|
||||
factory _$$_AlbumCopyWith(_$_Album value, $Res Function(_$_Album) then) =
|
||||
__$$_AlbumCopyWithImpl<$Res>;
|
||||
abstract class _$$AlbumImplCopyWith<$Res> implements $AlbumCopyWith<$Res> {
|
||||
factory _$$AlbumImplCopyWith(
|
||||
_$AlbumImpl value, $Res Function(_$AlbumImpl) then) =
|
||||
__$$AlbumImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -671,9 +675,11 @@ abstract class _$$_AlbumCopyWith<$Res> implements $AlbumCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_AlbumCopyWithImpl<$Res> extends _$AlbumCopyWithImpl<$Res, _$_Album>
|
||||
implements _$$_AlbumCopyWith<$Res> {
|
||||
__$$_AlbumCopyWithImpl(_$_Album _value, $Res Function(_$_Album) _then)
|
||||
class __$$AlbumImplCopyWithImpl<$Res>
|
||||
extends _$AlbumCopyWithImpl<$Res, _$AlbumImpl>
|
||||
implements _$$AlbumImplCopyWith<$Res> {
|
||||
__$$AlbumImplCopyWithImpl(
|
||||
_$AlbumImpl _value, $Res Function(_$AlbumImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -694,7 +700,7 @@ class __$$_AlbumCopyWithImpl<$Res> extends _$AlbumCopyWithImpl<$Res, _$_Album>
|
||||
Object? frequentRank = freezed,
|
||||
Object? recentRank = freezed,
|
||||
}) {
|
||||
return _then(_$_Album(
|
||||
return _then(_$AlbumImpl(
|
||||
sourceId: null == sourceId
|
||||
? _value.sourceId
|
||||
: sourceId // ignore: cast_nullable_to_non_nullable
|
||||
@@ -757,8 +763,8 @@ class __$$_AlbumCopyWithImpl<$Res> extends _$AlbumCopyWithImpl<$Res, _$_Album>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_Album with DiagnosticableTreeMixin implements _Album {
|
||||
const _$_Album(
|
||||
class _$AlbumImpl with DiagnosticableTreeMixin implements _Album {
|
||||
const _$AlbumImpl(
|
||||
{required this.sourceId,
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -833,10 +839,10 @@ class _$_Album with DiagnosticableTreeMixin implements _Album {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_Album &&
|
||||
other is _$AlbumImpl &&
|
||||
(identical(other.sourceId, sourceId) ||
|
||||
other.sourceId == sourceId) &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
@@ -882,8 +888,8 @@ class _$_Album with DiagnosticableTreeMixin implements _Album {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_AlbumCopyWith<_$_Album> get copyWith =>
|
||||
__$$_AlbumCopyWithImpl<_$_Album>(this, _$identity);
|
||||
_$$AlbumImplCopyWith<_$AlbumImpl> get copyWith =>
|
||||
__$$AlbumImplCopyWithImpl<_$AlbumImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _Album implements Album {
|
||||
@@ -901,7 +907,7 @@ abstract class _Album implements Album {
|
||||
required final int songCount,
|
||||
final bool isDeleted,
|
||||
final int? frequentRank,
|
||||
final int? recentRank}) = _$_Album;
|
||||
final int? recentRank}) = _$AlbumImpl;
|
||||
|
||||
@override
|
||||
int get sourceId;
|
||||
@@ -933,7 +939,7 @@ abstract class _Album implements Album {
|
||||
int? get recentRank;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_AlbumCopyWith<_$_Album> get copyWith =>
|
||||
_$$AlbumImplCopyWith<_$AlbumImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -1022,10 +1028,11 @@ class _$PlaylistCopyWithImpl<$Res, $Val extends Playlist>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_PlaylistCopyWith<$Res> implements $PlaylistCopyWith<$Res> {
|
||||
factory _$$_PlaylistCopyWith(
|
||||
_$_Playlist value, $Res Function(_$_Playlist) then) =
|
||||
__$$_PlaylistCopyWithImpl<$Res>;
|
||||
abstract class _$$PlaylistImplCopyWith<$Res>
|
||||
implements $PlaylistCopyWith<$Res> {
|
||||
factory _$$PlaylistImplCopyWith(
|
||||
_$PlaylistImpl value, $Res Function(_$PlaylistImpl) then) =
|
||||
__$$PlaylistImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -1039,11 +1046,11 @@ abstract class _$$_PlaylistCopyWith<$Res> implements $PlaylistCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_PlaylistCopyWithImpl<$Res>
|
||||
extends _$PlaylistCopyWithImpl<$Res, _$_Playlist>
|
||||
implements _$$_PlaylistCopyWith<$Res> {
|
||||
__$$_PlaylistCopyWithImpl(
|
||||
_$_Playlist _value, $Res Function(_$_Playlist) _then)
|
||||
class __$$PlaylistImplCopyWithImpl<$Res>
|
||||
extends _$PlaylistCopyWithImpl<$Res, _$PlaylistImpl>
|
||||
implements _$$PlaylistImplCopyWith<$Res> {
|
||||
__$$PlaylistImplCopyWithImpl(
|
||||
_$PlaylistImpl _value, $Res Function(_$PlaylistImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -1057,7 +1064,7 @@ class __$$_PlaylistCopyWithImpl<$Res>
|
||||
Object? songCount = null,
|
||||
Object? created = null,
|
||||
}) {
|
||||
return _then(_$_Playlist(
|
||||
return _then(_$PlaylistImpl(
|
||||
sourceId: null == sourceId
|
||||
? _value.sourceId
|
||||
: sourceId // ignore: cast_nullable_to_non_nullable
|
||||
@@ -1092,8 +1099,8 @@ class __$$_PlaylistCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_Playlist with DiagnosticableTreeMixin implements _Playlist {
|
||||
const _$_Playlist(
|
||||
class _$PlaylistImpl with DiagnosticableTreeMixin implements _Playlist {
|
||||
const _$PlaylistImpl(
|
||||
{required this.sourceId,
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -1137,10 +1144,10 @@ class _$_Playlist with DiagnosticableTreeMixin implements _Playlist {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_Playlist &&
|
||||
other is _$PlaylistImpl &&
|
||||
(identical(other.sourceId, sourceId) ||
|
||||
other.sourceId == sourceId) &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
@@ -1160,8 +1167,8 @@ class _$_Playlist with DiagnosticableTreeMixin implements _Playlist {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_PlaylistCopyWith<_$_Playlist> get copyWith =>
|
||||
__$$_PlaylistCopyWithImpl<_$_Playlist>(this, _$identity);
|
||||
_$$PlaylistImplCopyWith<_$PlaylistImpl> get copyWith =>
|
||||
__$$PlaylistImplCopyWithImpl<_$PlaylistImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _Playlist implements Playlist {
|
||||
@@ -1172,7 +1179,7 @@ abstract class _Playlist implements Playlist {
|
||||
final String? comment,
|
||||
final String? coverArt,
|
||||
required final int songCount,
|
||||
required final DateTime created}) = _$_Playlist;
|
||||
required final DateTime created}) = _$PlaylistImpl;
|
||||
|
||||
@override
|
||||
int get sourceId;
|
||||
@@ -1190,7 +1197,7 @@ abstract class _Playlist implements Playlist {
|
||||
DateTime get created;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_PlaylistCopyWith<_$_Playlist> get copyWith =>
|
||||
_$$PlaylistImplCopyWith<_$PlaylistImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -1334,9 +1341,10 @@ class _$SongCopyWithImpl<$Res, $Val extends Song>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SongCopyWith<$Res> implements $SongCopyWith<$Res> {
|
||||
factory _$$_SongCopyWith(_$_Song value, $Res Function(_$_Song) then) =
|
||||
__$$_SongCopyWithImpl<$Res>;
|
||||
abstract class _$$SongImplCopyWith<$Res> implements $SongCopyWith<$Res> {
|
||||
factory _$$SongImplCopyWith(
|
||||
_$SongImpl value, $Res Function(_$SongImpl) then) =
|
||||
__$$SongImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -1358,9 +1366,10 @@ abstract class _$$_SongCopyWith<$Res> implements $SongCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SongCopyWithImpl<$Res> extends _$SongCopyWithImpl<$Res, _$_Song>
|
||||
implements _$$_SongCopyWith<$Res> {
|
||||
__$$_SongCopyWithImpl(_$_Song _value, $Res Function(_$_Song) _then)
|
||||
class __$$SongImplCopyWithImpl<$Res>
|
||||
extends _$SongCopyWithImpl<$Res, _$SongImpl>
|
||||
implements _$$SongImplCopyWith<$Res> {
|
||||
__$$SongImplCopyWithImpl(_$SongImpl _value, $Res Function(_$SongImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -1382,7 +1391,7 @@ class __$$_SongCopyWithImpl<$Res> extends _$SongCopyWithImpl<$Res, _$_Song>
|
||||
Object? downloadFilePath = freezed,
|
||||
Object? isDeleted = null,
|
||||
}) {
|
||||
return _then(_$_Song(
|
||||
return _then(_$SongImpl(
|
||||
sourceId: null == sourceId
|
||||
? _value.sourceId
|
||||
: sourceId // ignore: cast_nullable_to_non_nullable
|
||||
@@ -1449,8 +1458,8 @@ class __$$_SongCopyWithImpl<$Res> extends _$SongCopyWithImpl<$Res, _$_Song>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_Song with DiagnosticableTreeMixin implements _Song {
|
||||
const _$_Song(
|
||||
class _$SongImpl with DiagnosticableTreeMixin implements _Song {
|
||||
const _$SongImpl(
|
||||
{required this.sourceId,
|
||||
required this.id,
|
||||
this.albumId,
|
||||
@@ -1527,10 +1536,10 @@ class _$_Song with DiagnosticableTreeMixin implements _Song {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_Song &&
|
||||
other is _$SongImpl &&
|
||||
(identical(other.sourceId, sourceId) ||
|
||||
other.sourceId == sourceId) &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
@@ -1576,8 +1585,8 @@ class _$_Song with DiagnosticableTreeMixin implements _Song {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_SongCopyWith<_$_Song> get copyWith =>
|
||||
__$$_SongCopyWithImpl<_$_Song>(this, _$identity);
|
||||
_$$SongImplCopyWith<_$SongImpl> get copyWith =>
|
||||
__$$SongImplCopyWithImpl<_$SongImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _Song implements Song {
|
||||
@@ -1596,7 +1605,7 @@ abstract class _Song implements Song {
|
||||
final String? genre,
|
||||
final String? downloadTaskId,
|
||||
final String? downloadFilePath,
|
||||
final bool isDeleted}) = _$_Song;
|
||||
final bool isDeleted}) = _$SongImpl;
|
||||
|
||||
@override
|
||||
int get sourceId;
|
||||
@@ -1630,7 +1639,8 @@ abstract class _Song implements Song {
|
||||
bool get isDeleted;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SongCopyWith<_$_Song> get copyWith => throw _privateConstructorUsedError;
|
||||
_$$SongImplCopyWith<_$SongImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -1698,11 +1708,11 @@ class _$SearchResultsCopyWithImpl<$Res, $Val extends SearchResults>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SearchResultsCopyWith<$Res>
|
||||
abstract class _$$SearchResultsImplCopyWith<$Res>
|
||||
implements $SearchResultsCopyWith<$Res> {
|
||||
factory _$$_SearchResultsCopyWith(
|
||||
_$_SearchResults value, $Res Function(_$_SearchResults) then) =
|
||||
__$$_SearchResultsCopyWithImpl<$Res>;
|
||||
factory _$$SearchResultsImplCopyWith(
|
||||
_$SearchResultsImpl value, $Res Function(_$SearchResultsImpl) then) =
|
||||
__$$SearchResultsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -1713,11 +1723,11 @@ abstract class _$$_SearchResultsCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SearchResultsCopyWithImpl<$Res>
|
||||
extends _$SearchResultsCopyWithImpl<$Res, _$_SearchResults>
|
||||
implements _$$_SearchResultsCopyWith<$Res> {
|
||||
__$$_SearchResultsCopyWithImpl(
|
||||
_$_SearchResults _value, $Res Function(_$_SearchResults) _then)
|
||||
class __$$SearchResultsImplCopyWithImpl<$Res>
|
||||
extends _$SearchResultsCopyWithImpl<$Res, _$SearchResultsImpl>
|
||||
implements _$$SearchResultsImplCopyWith<$Res> {
|
||||
__$$SearchResultsImplCopyWithImpl(
|
||||
_$SearchResultsImpl _value, $Res Function(_$SearchResultsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -1728,7 +1738,7 @@ class __$$_SearchResultsCopyWithImpl<$Res>
|
||||
Object? albums = null,
|
||||
Object? artists = null,
|
||||
}) {
|
||||
return _then(_$_SearchResults(
|
||||
return _then(_$SearchResultsImpl(
|
||||
query: freezed == query
|
||||
? _value.query
|
||||
: query // ignore: cast_nullable_to_non_nullable
|
||||
@@ -1751,8 +1761,10 @@ class __$$_SearchResultsCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_SearchResults with DiagnosticableTreeMixin implements _SearchResults {
|
||||
const _$_SearchResults(
|
||||
class _$SearchResultsImpl
|
||||
with DiagnosticableTreeMixin
|
||||
implements _SearchResults {
|
||||
const _$SearchResultsImpl(
|
||||
{this.query,
|
||||
this.songs = const IListConst([]),
|
||||
this.albums = const IListConst([]),
|
||||
@@ -1787,10 +1799,10 @@ class _$_SearchResults with DiagnosticableTreeMixin implements _SearchResults {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_SearchResults &&
|
||||
other is _$SearchResultsImpl &&
|
||||
(identical(other.query, query) || other.query == query) &&
|
||||
const DeepCollectionEquality().equals(other.songs, songs) &&
|
||||
const DeepCollectionEquality().equals(other.albums, albums) &&
|
||||
@@ -1808,8 +1820,8 @@ class _$_SearchResults with DiagnosticableTreeMixin implements _SearchResults {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_SearchResultsCopyWith<_$_SearchResults> get copyWith =>
|
||||
__$$_SearchResultsCopyWithImpl<_$_SearchResults>(this, _$identity);
|
||||
_$$SearchResultsImplCopyWith<_$SearchResultsImpl> get copyWith =>
|
||||
__$$SearchResultsImplCopyWithImpl<_$SearchResultsImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _SearchResults implements SearchResults {
|
||||
@@ -1817,7 +1829,7 @@ abstract class _SearchResults implements SearchResults {
|
||||
{final String? query,
|
||||
final IList<Song> songs,
|
||||
final IList<Album> albums,
|
||||
final IList<Artist> artists}) = _$_SearchResults;
|
||||
final IList<Artist> artists}) = _$SearchResultsImpl;
|
||||
|
||||
@override
|
||||
String? get query;
|
||||
@@ -1829,6 +1841,6 @@ abstract class _SearchResults implements SearchResults {
|
||||
IList<Artist> get artists;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SearchResultsCopyWith<_$_SearchResults> get copyWith =>
|
||||
_$$SearchResultsImplCopyWith<_$SearchResultsImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,25 +6,26 @@ part of 'query.dart';
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$_Pagination _$$_PaginationFromJson(Map<String, dynamic> json) =>
|
||||
_$_Pagination(
|
||||
limit: json['limit'] as int,
|
||||
offset: json['offset'] as int? ?? 0,
|
||||
_$PaginationImpl _$$PaginationImplFromJson(Map<String, dynamic> json) =>
|
||||
_$PaginationImpl(
|
||||
limit: (json['limit'] as num).toInt(),
|
||||
offset: (json['offset'] as num?)?.toInt() ?? 0,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_PaginationToJson(_$_Pagination instance) =>
|
||||
Map<String, dynamic> _$$PaginationImplToJson(_$PaginationImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'limit': instance.limit,
|
||||
'offset': instance.offset,
|
||||
};
|
||||
|
||||
_$_SortBy _$$_SortByFromJson(Map<String, dynamic> json) => _$_SortBy(
|
||||
_$SortByImpl _$$SortByImplFromJson(Map<String, dynamic> json) => _$SortByImpl(
|
||||
column: json['column'] as String,
|
||||
dir: $enumDecodeNullable(_$SortDirectionEnumMap, json['dir']) ??
|
||||
SortDirection.asc,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_SortByToJson(_$_SortBy instance) => <String, dynamic>{
|
||||
Map<String, dynamic> _$$SortByImplToJson(_$SortByImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'column': instance.column,
|
||||
'dir': _$SortDirectionEnumMap[instance.dir]!,
|
||||
};
|
||||
@@ -34,15 +35,17 @@ const _$SortDirectionEnumMap = {
|
||||
SortDirection.desc: 'desc',
|
||||
};
|
||||
|
||||
_$_FilterWithEquals _$$_FilterWithEqualsFromJson(Map<String, dynamic> json) =>
|
||||
_$_FilterWithEquals(
|
||||
_$FilterWithEqualsImpl _$$FilterWithEqualsImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$FilterWithEqualsImpl(
|
||||
column: json['column'] as String,
|
||||
value: json['value'] as String,
|
||||
invert: json['invert'] as bool? ?? false,
|
||||
$type: json['runtimeType'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_FilterWithEqualsToJson(_$_FilterWithEquals instance) =>
|
||||
Map<String, dynamic> _$$FilterWithEqualsImplToJson(
|
||||
_$FilterWithEqualsImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'column': instance.column,
|
||||
'value': instance.value,
|
||||
@@ -50,17 +53,17 @@ Map<String, dynamic> _$$_FilterWithEqualsToJson(_$_FilterWithEquals instance) =>
|
||||
'runtimeType': instance.$type,
|
||||
};
|
||||
|
||||
_$_FilterWithGreaterThan _$$_FilterWithGreaterThanFromJson(
|
||||
_$FilterWithGreaterThanImpl _$$FilterWithGreaterThanImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$_FilterWithGreaterThan(
|
||||
_$FilterWithGreaterThanImpl(
|
||||
column: json['column'] as String,
|
||||
value: json['value'] as String,
|
||||
orEquals: json['orEquals'] as bool? ?? false,
|
||||
$type: json['runtimeType'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_FilterWithGreaterThanToJson(
|
||||
_$_FilterWithGreaterThan instance) =>
|
||||
Map<String, dynamic> _$$FilterWithGreaterThanImplToJson(
|
||||
_$FilterWithGreaterThanImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'column': instance.column,
|
||||
'value': instance.value,
|
||||
@@ -68,31 +71,33 @@ Map<String, dynamic> _$$_FilterWithGreaterThanToJson(
|
||||
'runtimeType': instance.$type,
|
||||
};
|
||||
|
||||
_$_FilterWithIsNull _$$_FilterWithIsNullFromJson(Map<String, dynamic> json) =>
|
||||
_$_FilterWithIsNull(
|
||||
_$FilterWithIsNullImpl _$$FilterWithIsNullImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$FilterWithIsNullImpl(
|
||||
column: json['column'] as String,
|
||||
invert: json['invert'] as bool? ?? false,
|
||||
$type: json['runtimeType'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_FilterWithIsNullToJson(_$_FilterWithIsNull instance) =>
|
||||
Map<String, dynamic> _$$FilterWithIsNullImplToJson(
|
||||
_$FilterWithIsNullImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'column': instance.column,
|
||||
'invert': instance.invert,
|
||||
'runtimeType': instance.$type,
|
||||
};
|
||||
|
||||
_$_FilterWithBetweenInt _$$_FilterWithBetweenIntFromJson(
|
||||
_$FilterWithBetweenIntImpl _$$FilterWithBetweenIntImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$_FilterWithBetweenInt(
|
||||
_$FilterWithBetweenIntImpl(
|
||||
column: json['column'] as String,
|
||||
from: json['from'] as int,
|
||||
to: json['to'] as int,
|
||||
from: (json['from'] as num).toInt(),
|
||||
to: (json['to'] as num).toInt(),
|
||||
$type: json['runtimeType'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_FilterWithBetweenIntToJson(
|
||||
_$_FilterWithBetweenInt instance) =>
|
||||
Map<String, dynamic> _$$FilterWithBetweenIntImplToJson(
|
||||
_$FilterWithBetweenIntImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'column': instance.column,
|
||||
'from': instance.from,
|
||||
@@ -100,8 +105,8 @@ Map<String, dynamic> _$$_FilterWithBetweenIntToJson(
|
||||
'runtimeType': instance.$type,
|
||||
};
|
||||
|
||||
_$_FilterWithIsIn _$$_FilterWithIsInFromJson(Map<String, dynamic> json) =>
|
||||
_$_FilterWithIsIn(
|
||||
_$FilterWithIsInImpl _$$FilterWithIsInImplFromJson(Map<String, dynamic> json) =>
|
||||
_$FilterWithIsInImpl(
|
||||
column: json['column'] as String,
|
||||
invert: json['invert'] as bool? ?? false,
|
||||
values: json['values'] == null
|
||||
@@ -110,7 +115,8 @@ _$_FilterWithIsIn _$$_FilterWithIsInFromJson(Map<String, dynamic> json) =>
|
||||
$type: json['runtimeType'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_FilterWithIsInToJson(_$_FilterWithIsIn instance) =>
|
||||
Map<String, dynamic> _$$FilterWithIsInImplToJson(
|
||||
_$FilterWithIsInImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'column': instance.column,
|
||||
'invert': instance.invert,
|
||||
@@ -120,7 +126,8 @@ Map<String, dynamic> _$$_FilterWithIsInToJson(_$_FilterWithIsIn instance) =>
|
||||
'runtimeType': instance.$type,
|
||||
};
|
||||
|
||||
_$_ListQuery _$$_ListQueryFromJson(Map<String, dynamic> json) => _$_ListQuery(
|
||||
_$ListQueryImpl _$$ListQueryImplFromJson(Map<String, dynamic> json) =>
|
||||
_$ListQueryImpl(
|
||||
page: json['page'] == null
|
||||
? const Pagination(limit: -1, offset: 0)
|
||||
: Pagination.fromJson(json['page'] as Map<String, dynamic>),
|
||||
@@ -133,7 +140,7 @@ _$_ListQuery _$$_ListQueryFromJson(Map<String, dynamic> json) => _$_ListQuery(
|
||||
(value) => FilterWith.fromJson(value as Map<String, dynamic>)),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_ListQueryToJson(_$_ListQuery instance) =>
|
||||
Map<String, dynamic> _$$ListQueryImplToJson(_$ListQueryImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'page': instance.page,
|
||||
'sort': instance.sort,
|
||||
|
||||
@@ -12,7 +12,7 @@ part of 'settings.dart';
|
||||
T _$identity<T>(T value) => value;
|
||||
|
||||
final _privateConstructorUsedError = UnsupportedError(
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
|
||||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
|
||||
|
||||
/// @nodoc
|
||||
mixin _$Settings {
|
||||
@@ -81,10 +81,11 @@ class _$SettingsCopyWithImpl<$Res, $Val extends Settings>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SettingsCopyWith<$Res> implements $SettingsCopyWith<$Res> {
|
||||
factory _$$_SettingsCopyWith(
|
||||
_$_Settings value, $Res Function(_$_Settings) then) =
|
||||
__$$_SettingsCopyWithImpl<$Res>;
|
||||
abstract class _$$SettingsImplCopyWith<$Res>
|
||||
implements $SettingsCopyWith<$Res> {
|
||||
factory _$$SettingsImplCopyWith(
|
||||
_$SettingsImpl value, $Res Function(_$SettingsImpl) then) =
|
||||
__$$SettingsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -97,11 +98,11 @@ abstract class _$$_SettingsCopyWith<$Res> implements $SettingsCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SettingsCopyWithImpl<$Res>
|
||||
extends _$SettingsCopyWithImpl<$Res, _$_Settings>
|
||||
implements _$$_SettingsCopyWith<$Res> {
|
||||
__$$_SettingsCopyWithImpl(
|
||||
_$_Settings _value, $Res Function(_$_Settings) _then)
|
||||
class __$$SettingsImplCopyWithImpl<$Res>
|
||||
extends _$SettingsCopyWithImpl<$Res, _$SettingsImpl>
|
||||
implements _$$SettingsImplCopyWith<$Res> {
|
||||
__$$SettingsImplCopyWithImpl(
|
||||
_$SettingsImpl _value, $Res Function(_$SettingsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -111,7 +112,7 @@ class __$$_SettingsCopyWithImpl<$Res>
|
||||
Object? activeSource = freezed,
|
||||
Object? app = null,
|
||||
}) {
|
||||
return _then(_$_Settings(
|
||||
return _then(_$SettingsImpl(
|
||||
sources: null == sources
|
||||
? _value.sources
|
||||
: sources // ignore: cast_nullable_to_non_nullable
|
||||
@@ -130,8 +131,8 @@ class __$$_SettingsCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_Settings implements _Settings {
|
||||
const _$_Settings(
|
||||
class _$SettingsImpl implements _Settings {
|
||||
const _$SettingsImpl(
|
||||
{this.sources = const IListConst([]),
|
||||
this.activeSource,
|
||||
this.app = const AppSettings()});
|
||||
@@ -151,10 +152,10 @@ class _$_Settings implements _Settings {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_Settings &&
|
||||
other is _$SettingsImpl &&
|
||||
const DeepCollectionEquality().equals(other.sources, sources) &&
|
||||
(identical(other.activeSource, activeSource) ||
|
||||
other.activeSource == activeSource) &&
|
||||
@@ -168,15 +169,15 @@ class _$_Settings implements _Settings {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_SettingsCopyWith<_$_Settings> get copyWith =>
|
||||
__$$_SettingsCopyWithImpl<_$_Settings>(this, _$identity);
|
||||
_$$SettingsImplCopyWith<_$SettingsImpl> get copyWith =>
|
||||
__$$SettingsImplCopyWithImpl<_$SettingsImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _Settings implements Settings {
|
||||
const factory _Settings(
|
||||
{final IList<SourceSettings> sources,
|
||||
final SourceSettings? activeSource,
|
||||
final AppSettings app}) = _$_Settings;
|
||||
final AppSettings app}) = _$SettingsImpl;
|
||||
|
||||
@override
|
||||
IList<SourceSettings> get sources;
|
||||
@@ -186,7 +187,7 @@ abstract class _Settings implements Settings {
|
||||
AppSettings get app;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SettingsCopyWith<_$_Settings> get copyWith =>
|
||||
_$$SettingsImplCopyWith<_$SettingsImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -245,22 +246,22 @@ class _$AppSettingsCopyWithImpl<$Res, $Val extends AppSettings>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_AppSettingsCopyWith<$Res>
|
||||
abstract class _$$AppSettingsImplCopyWith<$Res>
|
||||
implements $AppSettingsCopyWith<$Res> {
|
||||
factory _$$_AppSettingsCopyWith(
|
||||
_$_AppSettings value, $Res Function(_$_AppSettings) then) =
|
||||
__$$_AppSettingsCopyWithImpl<$Res>;
|
||||
factory _$$AppSettingsImplCopyWith(
|
||||
_$AppSettingsImpl value, $Res Function(_$AppSettingsImpl) then) =
|
||||
__$$AppSettingsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({int maxBitrateWifi, int maxBitrateMobile, String? streamFormat});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_AppSettingsCopyWithImpl<$Res>
|
||||
extends _$AppSettingsCopyWithImpl<$Res, _$_AppSettings>
|
||||
implements _$$_AppSettingsCopyWith<$Res> {
|
||||
__$$_AppSettingsCopyWithImpl(
|
||||
_$_AppSettings _value, $Res Function(_$_AppSettings) _then)
|
||||
class __$$AppSettingsImplCopyWithImpl<$Res>
|
||||
extends _$AppSettingsCopyWithImpl<$Res, _$AppSettingsImpl>
|
||||
implements _$$AppSettingsImplCopyWith<$Res> {
|
||||
__$$AppSettingsImplCopyWithImpl(
|
||||
_$AppSettingsImpl _value, $Res Function(_$AppSettingsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -270,7 +271,7 @@ class __$$_AppSettingsCopyWithImpl<$Res>
|
||||
Object? maxBitrateMobile = null,
|
||||
Object? streamFormat = freezed,
|
||||
}) {
|
||||
return _then(_$_AppSettings(
|
||||
return _then(_$AppSettingsImpl(
|
||||
maxBitrateWifi: null == maxBitrateWifi
|
||||
? _value.maxBitrateWifi
|
||||
: maxBitrateWifi // ignore: cast_nullable_to_non_nullable
|
||||
@@ -289,8 +290,8 @@ class __$$_AppSettingsCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_AppSettings extends _AppSettings {
|
||||
const _$_AppSettings(
|
||||
class _$AppSettingsImpl extends _AppSettings {
|
||||
const _$AppSettingsImpl(
|
||||
{this.maxBitrateWifi = 0,
|
||||
this.maxBitrateMobile = 192,
|
||||
this.streamFormat = 'mp3'})
|
||||
@@ -312,10 +313,10 @@ class _$_AppSettings extends _AppSettings {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_AppSettings &&
|
||||
other is _$AppSettingsImpl &&
|
||||
(identical(other.maxBitrateWifi, maxBitrateWifi) ||
|
||||
other.maxBitrateWifi == maxBitrateWifi) &&
|
||||
(identical(other.maxBitrateMobile, maxBitrateMobile) ||
|
||||
@@ -331,15 +332,15 @@ class _$_AppSettings extends _AppSettings {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_AppSettingsCopyWith<_$_AppSettings> get copyWith =>
|
||||
__$$_AppSettingsCopyWithImpl<_$_AppSettings>(this, _$identity);
|
||||
_$$AppSettingsImplCopyWith<_$AppSettingsImpl> get copyWith =>
|
||||
__$$AppSettingsImplCopyWithImpl<_$AppSettingsImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _AppSettings extends AppSettings {
|
||||
const factory _AppSettings(
|
||||
{final int maxBitrateWifi,
|
||||
final int maxBitrateMobile,
|
||||
final String? streamFormat}) = _$_AppSettings;
|
||||
final String? streamFormat}) = _$AppSettingsImpl;
|
||||
const _AppSettings._() : super._();
|
||||
|
||||
@override
|
||||
@@ -350,7 +351,7 @@ abstract class _AppSettings extends AppSettings {
|
||||
String? get streamFormat;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_AppSettingsCopyWith<_$_AppSettings> get copyWith =>
|
||||
_$$AppSettingsImplCopyWith<_$AppSettingsImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -454,11 +455,11 @@ class _$SubsonicSettingsCopyWithImpl<$Res, $Val extends SubsonicSettings>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SubsonicSettingsCopyWith<$Res>
|
||||
abstract class _$$SubsonicSettingsImplCopyWith<$Res>
|
||||
implements $SubsonicSettingsCopyWith<$Res> {
|
||||
factory _$$_SubsonicSettingsCopyWith(
|
||||
_$_SubsonicSettings value, $Res Function(_$_SubsonicSettings) then) =
|
||||
__$$_SubsonicSettingsCopyWithImpl<$Res>;
|
||||
factory _$$SubsonicSettingsImplCopyWith(_$SubsonicSettingsImpl value,
|
||||
$Res Function(_$SubsonicSettingsImpl) then) =
|
||||
__$$SubsonicSettingsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
@@ -474,11 +475,11 @@ abstract class _$$_SubsonicSettingsCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SubsonicSettingsCopyWithImpl<$Res>
|
||||
extends _$SubsonicSettingsCopyWithImpl<$Res, _$_SubsonicSettings>
|
||||
implements _$$_SubsonicSettingsCopyWith<$Res> {
|
||||
__$$_SubsonicSettingsCopyWithImpl(
|
||||
_$_SubsonicSettings _value, $Res Function(_$_SubsonicSettings) _then)
|
||||
class __$$SubsonicSettingsImplCopyWithImpl<$Res>
|
||||
extends _$SubsonicSettingsCopyWithImpl<$Res, _$SubsonicSettingsImpl>
|
||||
implements _$$SubsonicSettingsImplCopyWith<$Res> {
|
||||
__$$SubsonicSettingsImplCopyWithImpl(_$SubsonicSettingsImpl _value,
|
||||
$Res Function(_$SubsonicSettingsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -494,7 +495,7 @@ class __$$_SubsonicSettingsCopyWithImpl<$Res>
|
||||
Object? password = null,
|
||||
Object? useTokenAuth = null,
|
||||
}) {
|
||||
return _then(_$_SubsonicSettings(
|
||||
return _then(_$SubsonicSettingsImpl(
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
@@ -537,8 +538,8 @@ class __$$_SubsonicSettingsCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_SubsonicSettings extends _SubsonicSettings {
|
||||
const _$_SubsonicSettings(
|
||||
class _$SubsonicSettingsImpl extends _SubsonicSettings {
|
||||
const _$SubsonicSettingsImpl(
|
||||
{required this.id,
|
||||
this.features = const IListConst([]),
|
||||
required this.name,
|
||||
@@ -577,10 +578,10 @@ class _$_SubsonicSettings extends _SubsonicSettings {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_SubsonicSettings &&
|
||||
other is _$SubsonicSettingsImpl &&
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
const DeepCollectionEquality().equals(other.features, features) &&
|
||||
(identical(other.name, name) || other.name == name) &&
|
||||
@@ -613,8 +614,9 @@ class _$_SubsonicSettings extends _SubsonicSettings {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_SubsonicSettingsCopyWith<_$_SubsonicSettings> get copyWith =>
|
||||
__$$_SubsonicSettingsCopyWithImpl<_$_SubsonicSettings>(this, _$identity);
|
||||
_$$SubsonicSettingsImplCopyWith<_$SubsonicSettingsImpl> get copyWith =>
|
||||
__$$SubsonicSettingsImplCopyWithImpl<_$SubsonicSettingsImpl>(
|
||||
this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _SubsonicSettings extends SubsonicSettings {
|
||||
@@ -627,7 +629,7 @@ abstract class _SubsonicSettings extends SubsonicSettings {
|
||||
required final DateTime createdAt,
|
||||
required final String username,
|
||||
required final String password,
|
||||
final bool useTokenAuth}) = _$_SubsonicSettings;
|
||||
final bool useTokenAuth}) = _$SubsonicSettingsImpl;
|
||||
const _SubsonicSettings._() : super._();
|
||||
|
||||
@override
|
||||
@@ -650,7 +652,7 @@ abstract class _SubsonicSettings extends SubsonicSettings {
|
||||
bool get useTokenAuth;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SubsonicSettingsCopyWith<_$_SubsonicSettings> get copyWith =>
|
||||
_$$SubsonicSettingsImplCopyWith<_$SubsonicSettingsImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -714,11 +716,12 @@ class _$SubsonicSourceSettingsCopyWithImpl<$Res,
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$_SubsonicSourceSettingsCopyWith<$Res>
|
||||
abstract class _$$SubsonicSourceSettingsImplCopyWith<$Res>
|
||||
implements $SubsonicSourceSettingsCopyWith<$Res> {
|
||||
factory _$$_SubsonicSourceSettingsCopyWith(_$_SubsonicSourceSettings value,
|
||||
$Res Function(_$_SubsonicSourceSettings) then) =
|
||||
__$$_SubsonicSourceSettingsCopyWithImpl<$Res>;
|
||||
factory _$$SubsonicSourceSettingsImplCopyWith(
|
||||
_$SubsonicSourceSettingsImpl value,
|
||||
$Res Function(_$SubsonicSourceSettingsImpl) then) =
|
||||
__$$SubsonicSourceSettingsImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({SourceSettings source, SubsonicSettings subsonic});
|
||||
@@ -728,12 +731,13 @@ abstract class _$$_SubsonicSourceSettingsCopyWith<$Res>
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$_SubsonicSourceSettingsCopyWithImpl<$Res>
|
||||
class __$$SubsonicSourceSettingsImplCopyWithImpl<$Res>
|
||||
extends _$SubsonicSourceSettingsCopyWithImpl<$Res,
|
||||
_$_SubsonicSourceSettings>
|
||||
implements _$$_SubsonicSourceSettingsCopyWith<$Res> {
|
||||
__$$_SubsonicSourceSettingsCopyWithImpl(_$_SubsonicSourceSettings _value,
|
||||
$Res Function(_$_SubsonicSourceSettings) _then)
|
||||
_$SubsonicSourceSettingsImpl>
|
||||
implements _$$SubsonicSourceSettingsImplCopyWith<$Res> {
|
||||
__$$SubsonicSourceSettingsImplCopyWithImpl(
|
||||
_$SubsonicSourceSettingsImpl _value,
|
||||
$Res Function(_$SubsonicSourceSettingsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@@ -742,7 +746,7 @@ class __$$_SubsonicSourceSettingsCopyWithImpl<$Res>
|
||||
Object? source = null,
|
||||
Object? subsonic = null,
|
||||
}) {
|
||||
return _then(_$_SubsonicSourceSettings(
|
||||
return _then(_$SubsonicSourceSettingsImpl(
|
||||
source: null == source
|
||||
? _value.source
|
||||
: source // ignore: cast_nullable_to_non_nullable
|
||||
@@ -757,8 +761,8 @@ class __$$_SubsonicSourceSettingsCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$_SubsonicSourceSettings extends _SubsonicSourceSettings {
|
||||
const _$_SubsonicSourceSettings(
|
||||
class _$SubsonicSourceSettingsImpl extends _SubsonicSourceSettings {
|
||||
const _$SubsonicSourceSettingsImpl(
|
||||
{required this.source, required this.subsonic})
|
||||
: super._();
|
||||
|
||||
@@ -773,10 +777,10 @@ class _$_SubsonicSourceSettings extends _SubsonicSourceSettings {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$_SubsonicSourceSettings &&
|
||||
other is _$SubsonicSourceSettingsImpl &&
|
||||
(identical(other.source, source) || other.source == source) &&
|
||||
(identical(other.subsonic, subsonic) ||
|
||||
other.subsonic == subsonic));
|
||||
@@ -788,15 +792,15 @@ class _$_SubsonicSourceSettings extends _SubsonicSourceSettings {
|
||||
@JsonKey(ignore: true)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$_SubsonicSourceSettingsCopyWith<_$_SubsonicSourceSettings> get copyWith =>
|
||||
__$$_SubsonicSourceSettingsCopyWithImpl<_$_SubsonicSourceSettings>(
|
||||
this, _$identity);
|
||||
_$$SubsonicSourceSettingsImplCopyWith<_$SubsonicSourceSettingsImpl>
|
||||
get copyWith => __$$SubsonicSourceSettingsImplCopyWithImpl<
|
||||
_$SubsonicSourceSettingsImpl>(this, _$identity);
|
||||
}
|
||||
|
||||
abstract class _SubsonicSourceSettings extends SubsonicSourceSettings {
|
||||
const factory _SubsonicSourceSettings(
|
||||
{required final SourceSettings source,
|
||||
required final SubsonicSettings subsonic}) = _$_SubsonicSourceSettings;
|
||||
required final SubsonicSettings subsonic}) = _$SubsonicSourceSettingsImpl;
|
||||
const _SubsonicSourceSettings._() : super._();
|
||||
|
||||
@override
|
||||
@@ -805,6 +809,6 @@ abstract class _SubsonicSourceSettings extends SubsonicSourceSettings {
|
||||
SubsonicSettings get subsonic;
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
_$$_SubsonicSourceSettingsCopyWith<_$_SubsonicSourceSettings> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
_$$SubsonicSourceSettingsImplCopyWith<_$SubsonicSourceSettingsImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,15 +6,16 @@ part of 'support.dart';
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$_QueueItemState _$$_QueueItemStateFromJson(Map<String, dynamic> json) =>
|
||||
_$_QueueItemState(
|
||||
_$QueueItemStateImpl _$$QueueItemStateImplFromJson(Map<String, dynamic> json) =>
|
||||
_$QueueItemStateImpl(
|
||||
id: json['id'] as String,
|
||||
contextType: $enumDecode(_$QueueContextTypeEnumMap, json['contextType']),
|
||||
contextId: json['contextId'] as String?,
|
||||
contextTitle: json['contextTitle'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_QueueItemStateToJson(_$_QueueItemState instance) =>
|
||||
Map<String, dynamic> _$$QueueItemStateImplToJson(
|
||||
_$QueueItemStateImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'contextType': _$QueueContextTypeEnumMap[instance.contextType]!,
|
||||
@@ -31,9 +32,9 @@ const _$QueueContextTypeEnumMap = {
|
||||
QueueContextType.artist: 'artist',
|
||||
};
|
||||
|
||||
_$_MediaItemData _$$_MediaItemDataFromJson(Map<String, dynamic> json) =>
|
||||
_$_MediaItemData(
|
||||
sourceId: json['sourceId'] as int,
|
||||
_$MediaItemDataImpl _$$MediaItemDataImplFromJson(Map<String, dynamic> json) =>
|
||||
_$MediaItemDataImpl(
|
||||
sourceId: (json['sourceId'] as num).toInt(),
|
||||
albumId: json['albumId'] as String?,
|
||||
artCache:
|
||||
_$JsonConverterFromJson<Map<String, dynamic>, MediaItemArtCache>(
|
||||
@@ -42,7 +43,7 @@ _$_MediaItemData _$$_MediaItemDataFromJson(Map<String, dynamic> json) =>
|
||||
contextId: json['contextId'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_MediaItemDataToJson(_$_MediaItemData instance) =>
|
||||
Map<String, dynamic> _$$MediaItemDataImplToJson(_$MediaItemDataImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'sourceId': instance.sourceId,
|
||||
'albumId': instance.albumId,
|
||||
@@ -65,16 +66,17 @@ Json? _$JsonConverterToJson<Json, Value>(
|
||||
) =>
|
||||
value == null ? null : toJson(value);
|
||||
|
||||
_$_MediaItemArtCache _$$_MediaItemArtCacheFromJson(Map<String, dynamic> json) =>
|
||||
_$_MediaItemArtCache(
|
||||
_$MediaItemArtCacheImpl _$$MediaItemArtCacheImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$MediaItemArtCacheImpl(
|
||||
fullArtUri: Uri.parse(json['fullArtUri'] as String),
|
||||
fullArtCacheKey: json['fullArtCacheKey'] as String,
|
||||
thumbnailArtUri: Uri.parse(json['thumbnailArtUri'] as String),
|
||||
thumbnailArtCacheKey: json['thumbnailArtCacheKey'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_MediaItemArtCacheToJson(
|
||||
_$_MediaItemArtCache instance) =>
|
||||
Map<String, dynamic> _$$MediaItemArtCacheImplToJson(
|
||||
_$MediaItemArtCacheImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'fullArtUri': instance.fullArtUri.toString(),
|
||||
'fullArtCacheKey': instance.fullArtCacheKey,
|
||||
|
||||
Reference in New Issue
Block a user