// 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 'poetry_detail.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** // dart format off T _$identity(T value) => value; /// @nodoc mixin _$PoetryDetailState implements DiagnosticableTreeMixin { int get poetryId; Poetry get poetry; /// Create a copy of PoetryDetailState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $PoetryDetailStateCopyWith get copyWith => _$PoetryDetailStateCopyWithImpl(this as PoetryDetailState, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'PoetryDetailState')) ..add(DiagnosticsProperty('poetryId', poetryId))..add(DiagnosticsProperty('poetry', poetry)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is PoetryDetailState&&(identical(other.poetryId, poetryId) || other.poetryId == poetryId)&&(identical(other.poetry, poetry) || other.poetry == poetry)); } @override int get hashCode => Object.hash(runtimeType,poetryId,poetry); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'PoetryDetailState(poetryId: $poetryId, poetry: $poetry)'; } } /// @nodoc abstract mixin class $PoetryDetailStateCopyWith<$Res> { factory $PoetryDetailStateCopyWith(PoetryDetailState value, $Res Function(PoetryDetailState) _then) = _$PoetryDetailStateCopyWithImpl; @useResult $Res call({ int poetryId, Poetry poetry }); $PoetryCopyWith<$Res> get poetry; } /// @nodoc class _$PoetryDetailStateCopyWithImpl<$Res> implements $PoetryDetailStateCopyWith<$Res> { _$PoetryDetailStateCopyWithImpl(this._self, this._then); final PoetryDetailState _self; final $Res Function(PoetryDetailState) _then; /// Create a copy of PoetryDetailState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? poetryId = null,Object? poetry = null,}) { return _then(_self.copyWith( poetryId: null == poetryId ? _self.poetryId : poetryId // ignore: cast_nullable_to_non_nullable as int,poetry: null == poetry ? _self.poetry : poetry // ignore: cast_nullable_to_non_nullable as Poetry, )); } /// Create a copy of PoetryDetailState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PoetryCopyWith<$Res> get poetry { return $PoetryCopyWith<$Res>(_self.poetry, (value) { return _then(_self.copyWith(poetry: value)); }); } } /// @nodoc class _PoetryDetailState with DiagnosticableTreeMixin implements PoetryDetailState { const _PoetryDetailState({this.poetryId = 0, this.poetry = emptyPoetry}); @override@JsonKey() final int poetryId; @override@JsonKey() final Poetry poetry; /// Create a copy of PoetryDetailState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$PoetryDetailStateCopyWith<_PoetryDetailState> get copyWith => __$PoetryDetailStateCopyWithImpl<_PoetryDetailState>(this, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { properties ..add(DiagnosticsProperty('type', 'PoetryDetailState')) ..add(DiagnosticsProperty('poetryId', poetryId))..add(DiagnosticsProperty('poetry', poetry)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoetryDetailState&&(identical(other.poetryId, poetryId) || other.poetryId == poetryId)&&(identical(other.poetry, poetry) || other.poetry == poetry)); } @override int get hashCode => Object.hash(runtimeType,poetryId,poetry); @override String toString({ DiagnosticLevel minLevel = DiagnosticLevel.info }) { return 'PoetryDetailState(poetryId: $poetryId, poetry: $poetry)'; } } /// @nodoc abstract mixin class _$PoetryDetailStateCopyWith<$Res> implements $PoetryDetailStateCopyWith<$Res> { factory _$PoetryDetailStateCopyWith(_PoetryDetailState value, $Res Function(_PoetryDetailState) _then) = __$PoetryDetailStateCopyWithImpl; @override @useResult $Res call({ int poetryId, Poetry poetry }); @override $PoetryCopyWith<$Res> get poetry; } /// @nodoc class __$PoetryDetailStateCopyWithImpl<$Res> implements _$PoetryDetailStateCopyWith<$Res> { __$PoetryDetailStateCopyWithImpl(this._self, this._then); final _PoetryDetailState _self; final $Res Function(_PoetryDetailState) _then; /// Create a copy of PoetryDetailState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $Res call({Object? poetryId = null,Object? poetry = null,}) { return _then(_PoetryDetailState( poetryId: null == poetryId ? _self.poetryId : poetryId // ignore: cast_nullable_to_non_nullable as int,poetry: null == poetry ? _self.poetry : poetry // ignore: cast_nullable_to_non_nullable as Poetry, )); } /// Create a copy of PoetryDetailState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PoetryCopyWith<$Res> get poetry { return $PoetryCopyWith<$Res>(_self.poetry, (value) { return _then(_self.copyWith(poetry: value)); }); } } // dart format on