mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-06 15:39:41 +00:00
290 lines
12 KiB
Dart
290 lines
12 KiB
Dart
// coverage:ignore-file
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
|
|
|
part of 'quality_presets.dart';
|
|
|
|
// **************************************************************************
|
|
// FreezedGenerator
|
|
// **************************************************************************
|
|
|
|
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#adding-getters-and-methods-to-our-models');
|
|
|
|
AudioSourcePresetsState _$AudioSourcePresetsStateFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _AudioSourcePresetsState.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AudioSourcePresetsState {
|
|
List<SpotubeAudioSourceContainerPreset> get presets =>
|
|
throw _privateConstructorUsedError;
|
|
int get selectedStreamingQualityIndex => throw _privateConstructorUsedError;
|
|
int get selectedStreamingContainerIndex => throw _privateConstructorUsedError;
|
|
int get selectedDownloadingQualityIndex => throw _privateConstructorUsedError;
|
|
int get selectedDownloadingContainerIndex =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this AudioSourcePresetsState to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of AudioSourcePresetsState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AudioSourcePresetsStateCopyWith<AudioSourcePresetsState> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AudioSourcePresetsStateCopyWith<$Res> {
|
|
factory $AudioSourcePresetsStateCopyWith(AudioSourcePresetsState value,
|
|
$Res Function(AudioSourcePresetsState) then) =
|
|
_$AudioSourcePresetsStateCopyWithImpl<$Res, AudioSourcePresetsState>;
|
|
@useResult
|
|
$Res call(
|
|
{List<SpotubeAudioSourceContainerPreset> presets,
|
|
int selectedStreamingQualityIndex,
|
|
int selectedStreamingContainerIndex,
|
|
int selectedDownloadingQualityIndex,
|
|
int selectedDownloadingContainerIndex});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AudioSourcePresetsStateCopyWithImpl<$Res,
|
|
$Val extends AudioSourcePresetsState>
|
|
implements $AudioSourcePresetsStateCopyWith<$Res> {
|
|
_$AudioSourcePresetsStateCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AudioSourcePresetsState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? presets = null,
|
|
Object? selectedStreamingQualityIndex = null,
|
|
Object? selectedStreamingContainerIndex = null,
|
|
Object? selectedDownloadingQualityIndex = null,
|
|
Object? selectedDownloadingContainerIndex = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
presets: null == presets
|
|
? _value.presets
|
|
: presets // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeAudioSourceContainerPreset>,
|
|
selectedStreamingQualityIndex: null == selectedStreamingQualityIndex
|
|
? _value.selectedStreamingQualityIndex
|
|
: selectedStreamingQualityIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
selectedStreamingContainerIndex: null == selectedStreamingContainerIndex
|
|
? _value.selectedStreamingContainerIndex
|
|
: selectedStreamingContainerIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
selectedDownloadingQualityIndex: null == selectedDownloadingQualityIndex
|
|
? _value.selectedDownloadingQualityIndex
|
|
: selectedDownloadingQualityIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
selectedDownloadingContainerIndex: null ==
|
|
selectedDownloadingContainerIndex
|
|
? _value.selectedDownloadingContainerIndex
|
|
: selectedDownloadingContainerIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AudioSourcePresetsStateImplCopyWith<$Res>
|
|
implements $AudioSourcePresetsStateCopyWith<$Res> {
|
|
factory _$$AudioSourcePresetsStateImplCopyWith(
|
|
_$AudioSourcePresetsStateImpl value,
|
|
$Res Function(_$AudioSourcePresetsStateImpl) then) =
|
|
__$$AudioSourcePresetsStateImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{List<SpotubeAudioSourceContainerPreset> presets,
|
|
int selectedStreamingQualityIndex,
|
|
int selectedStreamingContainerIndex,
|
|
int selectedDownloadingQualityIndex,
|
|
int selectedDownloadingContainerIndex});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AudioSourcePresetsStateImplCopyWithImpl<$Res>
|
|
extends _$AudioSourcePresetsStateCopyWithImpl<$Res,
|
|
_$AudioSourcePresetsStateImpl>
|
|
implements _$$AudioSourcePresetsStateImplCopyWith<$Res> {
|
|
__$$AudioSourcePresetsStateImplCopyWithImpl(
|
|
_$AudioSourcePresetsStateImpl _value,
|
|
$Res Function(_$AudioSourcePresetsStateImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of AudioSourcePresetsState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? presets = null,
|
|
Object? selectedStreamingQualityIndex = null,
|
|
Object? selectedStreamingContainerIndex = null,
|
|
Object? selectedDownloadingQualityIndex = null,
|
|
Object? selectedDownloadingContainerIndex = null,
|
|
}) {
|
|
return _then(_$AudioSourcePresetsStateImpl(
|
|
presets: null == presets
|
|
? _value._presets
|
|
: presets // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeAudioSourceContainerPreset>,
|
|
selectedStreamingQualityIndex: null == selectedStreamingQualityIndex
|
|
? _value.selectedStreamingQualityIndex
|
|
: selectedStreamingQualityIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
selectedStreamingContainerIndex: null == selectedStreamingContainerIndex
|
|
? _value.selectedStreamingContainerIndex
|
|
: selectedStreamingContainerIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
selectedDownloadingQualityIndex: null == selectedDownloadingQualityIndex
|
|
? _value.selectedDownloadingQualityIndex
|
|
: selectedDownloadingQualityIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
selectedDownloadingContainerIndex: null ==
|
|
selectedDownloadingContainerIndex
|
|
? _value.selectedDownloadingContainerIndex
|
|
: selectedDownloadingContainerIndex // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AudioSourcePresetsStateImpl implements _AudioSourcePresetsState {
|
|
_$AudioSourcePresetsStateImpl(
|
|
{final List<SpotubeAudioSourceContainerPreset> presets = const [],
|
|
this.selectedStreamingQualityIndex = 0,
|
|
this.selectedStreamingContainerIndex = 0,
|
|
this.selectedDownloadingQualityIndex = 0,
|
|
this.selectedDownloadingContainerIndex = 0})
|
|
: _presets = presets;
|
|
|
|
factory _$AudioSourcePresetsStateImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AudioSourcePresetsStateImplFromJson(json);
|
|
|
|
final List<SpotubeAudioSourceContainerPreset> _presets;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeAudioSourceContainerPreset> get presets {
|
|
if (_presets is EqualUnmodifiableListView) return _presets;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_presets);
|
|
}
|
|
|
|
@override
|
|
@JsonKey()
|
|
final int selectedStreamingQualityIndex;
|
|
@override
|
|
@JsonKey()
|
|
final int selectedStreamingContainerIndex;
|
|
@override
|
|
@JsonKey()
|
|
final int selectedDownloadingQualityIndex;
|
|
@override
|
|
@JsonKey()
|
|
final int selectedDownloadingContainerIndex;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AudioSourcePresetsState(presets: $presets, selectedStreamingQualityIndex: $selectedStreamingQualityIndex, selectedStreamingContainerIndex: $selectedStreamingContainerIndex, selectedDownloadingQualityIndex: $selectedDownloadingQualityIndex, selectedDownloadingContainerIndex: $selectedDownloadingContainerIndex)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AudioSourcePresetsStateImpl &&
|
|
const DeepCollectionEquality().equals(other._presets, _presets) &&
|
|
(identical(other.selectedStreamingQualityIndex,
|
|
selectedStreamingQualityIndex) ||
|
|
other.selectedStreamingQualityIndex ==
|
|
selectedStreamingQualityIndex) &&
|
|
(identical(other.selectedStreamingContainerIndex,
|
|
selectedStreamingContainerIndex) ||
|
|
other.selectedStreamingContainerIndex ==
|
|
selectedStreamingContainerIndex) &&
|
|
(identical(other.selectedDownloadingQualityIndex,
|
|
selectedDownloadingQualityIndex) ||
|
|
other.selectedDownloadingQualityIndex ==
|
|
selectedDownloadingQualityIndex) &&
|
|
(identical(other.selectedDownloadingContainerIndex,
|
|
selectedDownloadingContainerIndex) ||
|
|
other.selectedDownloadingContainerIndex ==
|
|
selectedDownloadingContainerIndex));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(_presets),
|
|
selectedStreamingQualityIndex,
|
|
selectedStreamingContainerIndex,
|
|
selectedDownloadingQualityIndex,
|
|
selectedDownloadingContainerIndex);
|
|
|
|
/// Create a copy of AudioSourcePresetsState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AudioSourcePresetsStateImplCopyWith<_$AudioSourcePresetsStateImpl>
|
|
get copyWith => __$$AudioSourcePresetsStateImplCopyWithImpl<
|
|
_$AudioSourcePresetsStateImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AudioSourcePresetsStateImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _AudioSourcePresetsState implements AudioSourcePresetsState {
|
|
factory _AudioSourcePresetsState(
|
|
{final List<SpotubeAudioSourceContainerPreset> presets,
|
|
final int selectedStreamingQualityIndex,
|
|
final int selectedStreamingContainerIndex,
|
|
final int selectedDownloadingQualityIndex,
|
|
final int selectedDownloadingContainerIndex}) =
|
|
_$AudioSourcePresetsStateImpl;
|
|
|
|
factory _AudioSourcePresetsState.fromJson(Map<String, dynamic> json) =
|
|
_$AudioSourcePresetsStateImpl.fromJson;
|
|
|
|
@override
|
|
List<SpotubeAudioSourceContainerPreset> get presets;
|
|
@override
|
|
int get selectedStreamingQualityIndex;
|
|
@override
|
|
int get selectedStreamingContainerIndex;
|
|
@override
|
|
int get selectedDownloadingQualityIndex;
|
|
@override
|
|
int get selectedDownloadingContainerIndex;
|
|
|
|
/// Create a copy of AudioSourcePresetsState
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AudioSourcePresetsStateImplCopyWith<_$AudioSourcePresetsStateImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|