// dart format width=80 // 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 // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$HomeDownloaderUIState { List get tasks; List get waitingTasks; List get stoppedTasks; Aria2GlobalStat? get globalStat; /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $HomeDownloaderUIStateCopyWith get copyWith => _$HomeDownloaderUIStateCopyWithImpl( this as HomeDownloaderUIState, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is HomeDownloaderUIState && const DeepCollectionEquality().equals(other.tasks, tasks) && const DeepCollectionEquality() .equals(other.waitingTasks, waitingTasks) && const DeepCollectionEquality() .equals(other.stoppedTasks, stoppedTasks) && (identical(other.globalStat, globalStat) || other.globalStat == globalStat)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(tasks), const DeepCollectionEquality().hash(waitingTasks), const DeepCollectionEquality().hash(stoppedTasks), globalStat); @override String toString() { return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)'; } } /// @nodoc abstract mixin class $HomeDownloaderUIStateCopyWith<$Res> { factory $HomeDownloaderUIStateCopyWith(HomeDownloaderUIState value, $Res Function(HomeDownloaderUIState) _then) = _$HomeDownloaderUIStateCopyWithImpl; @useResult $Res call( {List tasks, List waitingTasks, List stoppedTasks, Aria2GlobalStat? globalStat}); } /// @nodoc class _$HomeDownloaderUIStateCopyWithImpl<$Res> implements $HomeDownloaderUIStateCopyWith<$Res> { _$HomeDownloaderUIStateCopyWithImpl(this._self, this._then); final HomeDownloaderUIState _self; final $Res Function(HomeDownloaderUIState) _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(_self.copyWith( tasks: null == tasks ? _self.tasks : tasks // ignore: cast_nullable_to_non_nullable as List, waitingTasks: null == waitingTasks ? _self.waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable as List, stoppedTasks: null == stoppedTasks ? _self.stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable as List, globalStat: freezed == globalStat ? _self.globalStat : globalStat // ignore: cast_nullable_to_non_nullable as Aria2GlobalStat?, )); } } /// @nodoc class _HomeDownloaderUIState implements HomeDownloaderUIState { _HomeDownloaderUIState( {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; /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$HomeDownloaderUIStateCopyWith<_HomeDownloaderUIState> get copyWith => __$HomeDownloaderUIStateCopyWithImpl<_HomeDownloaderUIState>( this, _$identity); @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _HomeDownloaderUIState && const DeepCollectionEquality().equals(other._tasks, _tasks) && const DeepCollectionEquality() .equals(other._waitingTasks, _waitingTasks) && const DeepCollectionEquality() .equals(other._stoppedTasks, _stoppedTasks) && (identical(other.globalStat, globalStat) || other.globalStat == globalStat)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_tasks), const DeepCollectionEquality().hash(_waitingTasks), const DeepCollectionEquality().hash(_stoppedTasks), globalStat); @override String toString() { return 'HomeDownloaderUIState(tasks: $tasks, waitingTasks: $waitingTasks, stoppedTasks: $stoppedTasks, globalStat: $globalStat)'; } } /// @nodoc abstract mixin class _$HomeDownloaderUIStateCopyWith<$Res> implements $HomeDownloaderUIStateCopyWith<$Res> { factory _$HomeDownloaderUIStateCopyWith(_HomeDownloaderUIState value, $Res Function(_HomeDownloaderUIState) _then) = __$HomeDownloaderUIStateCopyWithImpl; @override @useResult $Res call( {List tasks, List waitingTasks, List stoppedTasks, Aria2GlobalStat? globalStat}); } /// @nodoc class __$HomeDownloaderUIStateCopyWithImpl<$Res> implements _$HomeDownloaderUIStateCopyWith<$Res> { __$HomeDownloaderUIStateCopyWithImpl(this._self, this._then); final _HomeDownloaderUIState _self; final $Res Function(_HomeDownloaderUIState) _then; /// Create a copy of HomeDownloaderUIState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({ Object? tasks = null, Object? waitingTasks = null, Object? stoppedTasks = null, Object? globalStat = freezed, }) { return _then(_HomeDownloaderUIState( tasks: null == tasks ? _self._tasks : tasks // ignore: cast_nullable_to_non_nullable as List, waitingTasks: null == waitingTasks ? _self._waitingTasks : waitingTasks // ignore: cast_nullable_to_non_nullable as List, stoppedTasks: null == stoppedTasks ? _self._stoppedTasks : stoppedTasks // ignore: cast_nullable_to_non_nullable as List, globalStat: freezed == globalStat ? _self.globalStat : globalStat // ignore: cast_nullable_to_non_nullable as Aria2GlobalStat?, )); } } // dart format on