// 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 'download_service.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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'); /// @nodoc mixin _$DownloadState { IList get downloads => throw _privateConstructorUsedError; IList get deletes => throw _privateConstructorUsedError; IList get listDownloads => throw _privateConstructorUsedError; IList get listCancels => throw _privateConstructorUsedError; String get saveDir => throw _privateConstructorUsedError; @JsonKey(ignore: true) $DownloadStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DownloadStateCopyWith<$Res> { factory $DownloadStateCopyWith( DownloadState value, $Res Function(DownloadState) then) = _$DownloadStateCopyWithImpl<$Res, DownloadState>; @useResult $Res call( {IList downloads, IList deletes, IList listDownloads, IList listCancels, String saveDir}); } /// @nodoc class _$DownloadStateCopyWithImpl<$Res, $Val extends DownloadState> implements $DownloadStateCopyWith<$Res> { _$DownloadStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? downloads = null, Object? deletes = null, Object? listDownloads = null, Object? listCancels = null, Object? saveDir = null, }) { return _then(_value.copyWith( downloads: null == downloads ? _value.downloads : downloads // ignore: cast_nullable_to_non_nullable as IList, deletes: null == deletes ? _value.deletes : deletes // ignore: cast_nullable_to_non_nullable as IList, listDownloads: null == listDownloads ? _value.listDownloads : listDownloads // ignore: cast_nullable_to_non_nullable as IList, listCancels: null == listCancels ? _value.listCancels : listCancels // ignore: cast_nullable_to_non_nullable as IList, saveDir: null == saveDir ? _value.saveDir : saveDir // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$_DownloadStateCopyWith<$Res> implements $DownloadStateCopyWith<$Res> { factory _$$_DownloadStateCopyWith( _$_DownloadState value, $Res Function(_$_DownloadState) then) = __$$_DownloadStateCopyWithImpl<$Res>; @override @useResult $Res call( {IList downloads, IList deletes, IList listDownloads, IList listCancels, String saveDir}); } /// @nodoc class __$$_DownloadStateCopyWithImpl<$Res> extends _$DownloadStateCopyWithImpl<$Res, _$_DownloadState> implements _$$_DownloadStateCopyWith<$Res> { __$$_DownloadStateCopyWithImpl( _$_DownloadState _value, $Res Function(_$_DownloadState) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? downloads = null, Object? deletes = null, Object? listDownloads = null, Object? listCancels = null, Object? saveDir = null, }) { return _then(_$_DownloadState( downloads: null == downloads ? _value.downloads : downloads // ignore: cast_nullable_to_non_nullable as IList, deletes: null == deletes ? _value.deletes : deletes // ignore: cast_nullable_to_non_nullable as IList, listDownloads: null == listDownloads ? _value.listDownloads : listDownloads // ignore: cast_nullable_to_non_nullable as IList, listCancels: null == listCancels ? _value.listCancels : listCancels // ignore: cast_nullable_to_non_nullable as IList, saveDir: null == saveDir ? _value.saveDir : saveDir // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc class _$_DownloadState implements _DownloadState { const _$_DownloadState( {this.downloads = const IListConst([]), this.deletes = const IListConst([]), this.listDownloads = const IListConst([]), this.listCancels = const IListConst([]), required this.saveDir}); @override @JsonKey() final IList downloads; @override @JsonKey() final IList deletes; @override @JsonKey() final IList listDownloads; @override @JsonKey() final IList listCancels; @override final String saveDir; @override String toString() { return 'DownloadState(downloads: $downloads, deletes: $deletes, listDownloads: $listDownloads, listCancels: $listCancels, saveDir: $saveDir)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_DownloadState && const DeepCollectionEquality().equals(other.downloads, downloads) && const DeepCollectionEquality().equals(other.deletes, deletes) && const DeepCollectionEquality() .equals(other.listDownloads, listDownloads) && const DeepCollectionEquality() .equals(other.listCancels, listCancels) && (identical(other.saveDir, saveDir) || other.saveDir == saveDir)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(downloads), const DeepCollectionEquality().hash(deletes), const DeepCollectionEquality().hash(listDownloads), const DeepCollectionEquality().hash(listCancels), saveDir); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_DownloadStateCopyWith<_$_DownloadState> get copyWith => __$$_DownloadStateCopyWithImpl<_$_DownloadState>(this, _$identity); } abstract class _DownloadState implements DownloadState { const factory _DownloadState( {final IList downloads, final IList deletes, final IList listDownloads, final IList listCancels, required final String saveDir}) = _$_DownloadState; @override IList get downloads; @override IList get deletes; @override IList get listDownloads; @override IList get listCancels; @override String get saveDir; @override @JsonKey(ignore: true) _$$_DownloadStateCopyWith<_$_DownloadState> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$Download { String get taskId => throw _privateConstructorUsedError; DownloadTaskStatus get status => throw _privateConstructorUsedError; int get progress => throw _privateConstructorUsedError; String get url => throw _privateConstructorUsedError; String? get filename => throw _privateConstructorUsedError; String get savedDir => throw _privateConstructorUsedError; int get timeCreated => throw _privateConstructorUsedError; bool get allowCellular => throw _privateConstructorUsedError; @JsonKey(ignore: true) $DownloadCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $DownloadCopyWith<$Res> { factory $DownloadCopyWith(Download value, $Res Function(Download) then) = _$DownloadCopyWithImpl<$Res, Download>; @useResult $Res call( {String taskId, DownloadTaskStatus status, int progress, String url, String? filename, String savedDir, int timeCreated, bool allowCellular}); } /// @nodoc class _$DownloadCopyWithImpl<$Res, $Val extends Download> implements $DownloadCopyWith<$Res> { _$DownloadCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? taskId = null, Object? status = null, Object? progress = null, Object? url = null, Object? filename = freezed, Object? savedDir = null, Object? timeCreated = null, Object? allowCellular = null, }) { return _then(_value.copyWith( taskId: null == taskId ? _value.taskId : taskId // ignore: cast_nullable_to_non_nullable as String, status: null == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as DownloadTaskStatus, progress: null == progress ? _value.progress : progress // ignore: cast_nullable_to_non_nullable as int, url: null == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String, filename: freezed == filename ? _value.filename : filename // ignore: cast_nullable_to_non_nullable as String?, savedDir: null == savedDir ? _value.savedDir : savedDir // ignore: cast_nullable_to_non_nullable as String, timeCreated: null == timeCreated ? _value.timeCreated : timeCreated // ignore: cast_nullable_to_non_nullable as int, allowCellular: null == allowCellular ? _value.allowCellular : allowCellular // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$_DownloadCopyWith<$Res> implements $DownloadCopyWith<$Res> { factory _$$_DownloadCopyWith( _$_Download value, $Res Function(_$_Download) then) = __$$_DownloadCopyWithImpl<$Res>; @override @useResult $Res call( {String taskId, DownloadTaskStatus status, int progress, String url, String? filename, String savedDir, int timeCreated, bool allowCellular}); } /// @nodoc class __$$_DownloadCopyWithImpl<$Res> extends _$DownloadCopyWithImpl<$Res, _$_Download> implements _$$_DownloadCopyWith<$Res> { __$$_DownloadCopyWithImpl( _$_Download _value, $Res Function(_$_Download) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? taskId = null, Object? status = null, Object? progress = null, Object? url = null, Object? filename = freezed, Object? savedDir = null, Object? timeCreated = null, Object? allowCellular = null, }) { return _then(_$_Download( taskId: null == taskId ? _value.taskId : taskId // ignore: cast_nullable_to_non_nullable as String, status: null == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as DownloadTaskStatus, progress: null == progress ? _value.progress : progress // ignore: cast_nullable_to_non_nullable as int, url: null == url ? _value.url : url // ignore: cast_nullable_to_non_nullable as String, filename: freezed == filename ? _value.filename : filename // ignore: cast_nullable_to_non_nullable as String?, savedDir: null == savedDir ? _value.savedDir : savedDir // ignore: cast_nullable_to_non_nullable as String, timeCreated: null == timeCreated ? _value.timeCreated : timeCreated // ignore: cast_nullable_to_non_nullable as int, allowCellular: null == allowCellular ? _value.allowCellular : allowCellular // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc class _$_Download extends _Download { const _$_Download( {required this.taskId, required this.status, required this.progress, required this.url, required this.filename, required this.savedDir, required this.timeCreated, required this.allowCellular}) : super._(); @override final String taskId; @override final DownloadTaskStatus status; @override final int progress; @override final String url; @override final String? filename; @override final String savedDir; @override final int timeCreated; @override final bool allowCellular; @override String toString() { return 'Download(taskId: $taskId, status: $status, progress: $progress, url: $url, filename: $filename, savedDir: $savedDir, timeCreated: $timeCreated, allowCellular: $allowCellular)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$_Download && (identical(other.taskId, taskId) || other.taskId == taskId) && (identical(other.status, status) || other.status == status) && (identical(other.progress, progress) || other.progress == progress) && (identical(other.url, url) || other.url == url) && (identical(other.filename, filename) || other.filename == filename) && (identical(other.savedDir, savedDir) || other.savedDir == savedDir) && (identical(other.timeCreated, timeCreated) || other.timeCreated == timeCreated) && (identical(other.allowCellular, allowCellular) || other.allowCellular == allowCellular)); } @override int get hashCode => Object.hash(runtimeType, taskId, status, progress, url, filename, savedDir, timeCreated, allowCellular); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$_DownloadCopyWith<_$_Download> get copyWith => __$$_DownloadCopyWithImpl<_$_Download>(this, _$identity); } abstract class _Download extends Download { const factory _Download( {required final String taskId, required final DownloadTaskStatus status, required final int progress, required final String url, required final String? filename, required final String savedDir, required final int timeCreated, required final bool allowCellular}) = _$_Download; const _Download._() : super._(); @override String get taskId; @override DownloadTaskStatus get status; @override int get progress; @override String get url; @override String? get filename; @override String get savedDir; @override int get timeCreated; @override bool get allowCellular; @override @JsonKey(ignore: true) _$$_DownloadCopyWith<_$_Download> get copyWith => throw _privateConstructorUsedError; }