flutter-samples/lib/logics/entities/state/poetry_list.freezed.dart
2025-05-03 15:33:44 +08:00

173 lines
5.4 KiB
Dart

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