// 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 'home_downloader_ui_model.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#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$HomeDownloaderUIState { List get tasks => throw _privateConstructorUsedError; List get waitingTasks => throw _privateConstructorUsedError; List get stoppedTasks => throw _privateConstructorUsedError; Aria2GlobalStat? get globalStat => throw _privateConstructorUsedError; /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $HomeDownloaderUIStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $HomeDownloaderUIStateCopyWith<$Res> { factory $HomeDownloaderUIStateCopyWith(HomeDownloaderUIState value, $Res Function(HomeDownloaderUIState) then) = _$HomeDownloaderUIStateCopyWithImpl<$Res, HomeDownloaderUIState>; @useResult $Res call( {List tasks, List waitingTasks, List stoppedTasks, Aria2GlobalStat? globalStat}); } /// @nodoc class _$HomeDownloaderUIStateCopyWithImpl<$Res, $Val extends HomeDownloaderUIState> implements $HomeDownloaderUIStateCopyWith<$Res> { _$HomeDownloaderUIStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? tasks = null, Object? waitingTasks = null, Object? stoppedTasks = null, Object? globalStat = freezed, }) { return _then(_value.copyWith( tasks: null == tasks ? _value.tasks : tasks // ignore: cast_nullable_to_non_nullable as List, waitingTasks: null == waitingTasks ? _value.waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable as List, stoppedTasks: null == stoppedTasks ? _value.stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable as List, globalStat: freezed == globalStat ? _value.globalStat : globalStat // ignore: cast_nullable_to_non_nullable as Aria2GlobalStat?, ) as $Val); } } /// @nodoc abstract class _$$HomeDownloaderUIStateImplCopyWith<$Res> implements $HomeDownloaderUIStateCopyWith<$Res> { factory _$$HomeDownloaderUIStateImplCopyWith( _$HomeDownloaderUIStateImpl value, $Res Function(_$HomeDownloaderUIStateImpl) then) = __$$HomeDownloaderUIStateImplCopyWithImpl<$Res>; @override @useResult $Res call( {List tasks, List waitingTasks, List stoppedTasks, Aria2GlobalStat? globalStat}); } /// @nodoc class __$$HomeDownloaderUIStateImplCopyWithImpl<$Res> extends _$HomeDownloaderUIStateCopyWithImpl<$Res, _$HomeDownloaderUIStateImpl> implements _$$HomeDownloaderUIStateImplCopyWith<$Res> { __$$HomeDownloaderUIStateImplCopyWithImpl(_$HomeDownloaderUIStateImpl _value, $Res Function(_$HomeDownloaderUIStateImpl) _then) : super(_value, _then); /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? tasks = null, Object? waitingTasks = null, Object? stoppedTasks = null, Object? globalStat = freezed, }) { return _then(_$HomeDownloaderUIStateImpl( tasks: null == tasks ? _value._tasks : tasks // ignore: cast_nullable_to_non_nullable as List, waitingTasks: null == waitingTasks ? _value._waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable as List, stoppedTasks: null == stoppedTasks ? _value._stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable as List, globalStat: freezed == globalStat ? _value.globalStat : globalStat // ignore: cast_nullable_to_non_nullable as Aria2GlobalStat?, )); } } /// @nodoc class _$HomeDownloaderUIStateImpl implements _HomeDownloaderUIState { _$HomeDownloaderUIStateImpl( {final List tasks = const [], final List waitingTasks = const [], final List stoppedTasks = const [], this.globalStat}) : _tasks = tasks, _waitingTasks = waitingTasks, _stoppedTasks = stoppedTasks; final List _tasks; @override @JsonKey() List get tasks { if (_tasks is EqualUnmodifiableListView) return _tasks; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_tasks); } final List _waitingTasks; @override @JsonKey() List get waitingTasks { if (_waitingTasks is EqualUnmodifiableListView) return _waitingTasks; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_waitingTasks); } final List _stoppedTasks; @override @JsonKey() List get stoppedTasks { if (_stoppedTasks is EqualUnmodifiableListView) return _stoppedTasks; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_stoppedTasks); } @override final Aria2GlobalStat? globalStat; @override String toString() { return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$HomeDownloaderUIStateImpl && const DeepCollectionEquality().equals(other._tasks, _tasks) && const DeepCollectionEquality() .equals(other._waitingTasks, _waitingTasks) && const DeepCollectionEquality() .equals(other._stoppedTasks, _stoppedTasks) && const DeepCollectionEquality() .equals(other.globalStat, globalStat)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_tasks), const DeepCollectionEquality().hash(_waitingTasks), const DeepCollectionEquality().hash(_stoppedTasks), const DeepCollectionEquality().hash(globalStat)); /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$HomeDownloaderUIStateImplCopyWith<_$HomeDownloaderUIStateImpl> get copyWith => __$$HomeDownloaderUIStateImplCopyWithImpl< _$HomeDownloaderUIStateImpl>(this, _$identity); } abstract class _HomeDownloaderUIState implements HomeDownloaderUIState { factory _HomeDownloaderUIState( {final List tasks, final List waitingTasks, final List stoppedTasks, final Aria2GlobalStat? globalStat}) = _$HomeDownloaderUIStateImpl; @override List get tasks; @override List get waitingTasks; @override List get stoppedTasks; @override Aria2GlobalStat? get globalStat; /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$HomeDownloaderUIStateImplCopyWith<_$HomeDownloaderUIStateImpl> get copyWith => throw _privateConstructorUsedError; }