// 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 'loadable_state.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 _$LoadableState { bool get isLoading => throw _privateConstructorUsedError; TState? get data => throw _privateConstructorUsedError; int? get lastFetch => throw _privateConstructorUsedError; void Function()? get reFetch => throw _privateConstructorUsedError; LoadingError? get error => throw _privateConstructorUsedError; /// Create a copy of LoadableState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $LoadableStateCopyWith> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $LoadableStateCopyWith { factory $LoadableStateCopyWith(LoadableState value, $Res Function(LoadableState) then) = _$LoadableStateCopyWithImpl>; @useResult $Res call( {bool isLoading, TState? data, int? lastFetch, void Function()? reFetch, LoadingError? error}); $LoadingErrorCopyWith<$Res>? get error; } /// @nodoc class _$LoadableStateCopyWithImpl> implements $LoadableStateCopyWith { _$LoadableStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of LoadableState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? isLoading = null, Object? data = freezed, Object? lastFetch = freezed, Object? reFetch = freezed, Object? error = freezed, }) { return _then(_value.copyWith( isLoading: null == isLoading ? _value.isLoading : isLoading // ignore: cast_nullable_to_non_nullable as bool, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as TState?, lastFetch: freezed == lastFetch ? _value.lastFetch : lastFetch // ignore: cast_nullable_to_non_nullable as int?, reFetch: freezed == reFetch ? _value.reFetch : reFetch // ignore: cast_nullable_to_non_nullable as void Function()?, error: freezed == error ? _value.error : error // ignore: cast_nullable_to_non_nullable as LoadingError?, ) as $Val); } /// Create a copy of LoadableState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $LoadingErrorCopyWith<$Res>? get error { if (_value.error == null) { return null; } return $LoadingErrorCopyWith<$Res>(_value.error!, (value) { return _then(_value.copyWith(error: value) as $Val); }); } } /// @nodoc abstract class _$$LoadableStateImplCopyWith implements $LoadableStateCopyWith { factory _$$LoadableStateImplCopyWith(_$LoadableStateImpl value, $Res Function(_$LoadableStateImpl) then) = __$$LoadableStateImplCopyWithImpl; @override @useResult $Res call( {bool isLoading, TState? data, int? lastFetch, void Function()? reFetch, LoadingError? error}); @override $LoadingErrorCopyWith<$Res>? get error; } /// @nodoc class __$$LoadableStateImplCopyWithImpl extends _$LoadableStateCopyWithImpl> implements _$$LoadableStateImplCopyWith { __$$LoadableStateImplCopyWithImpl(_$LoadableStateImpl _value, $Res Function(_$LoadableStateImpl) _then) : super(_value, _then); /// Create a copy of LoadableState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? isLoading = null, Object? data = freezed, Object? lastFetch = freezed, Object? reFetch = freezed, Object? error = freezed, }) { return _then(_$LoadableStateImpl( isLoading: null == isLoading ? _value.isLoading : isLoading // ignore: cast_nullable_to_non_nullable as bool, data: freezed == data ? _value.data : data // ignore: cast_nullable_to_non_nullable as TState?, lastFetch: freezed == lastFetch ? _value.lastFetch : lastFetch // ignore: cast_nullable_to_non_nullable as int?, reFetch: freezed == reFetch ? _value.reFetch : reFetch // ignore: cast_nullable_to_non_nullable as void Function()?, error: freezed == error ? _value.error : error // ignore: cast_nullable_to_non_nullable as LoadingError?, )); } } /// @nodoc class _$LoadableStateImpl extends _LoadableState { const _$LoadableStateImpl( {required this.isLoading, required this.data, required this.lastFetch, required this.reFetch, required this.error}) : super._(); @override final bool isLoading; @override final TState? data; @override final int? lastFetch; @override final void Function()? reFetch; @override final LoadingError? error; @override String toString() { return 'LoadableState<$TState>(isLoading: $isLoading, data: $data, lastFetch: $lastFetch, reFetch: $reFetch, error: $error)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LoadableStateImpl && (identical(other.isLoading, isLoading) || other.isLoading == isLoading) && const DeepCollectionEquality().equals(other.data, data) && (identical(other.lastFetch, lastFetch) || other.lastFetch == lastFetch) && (identical(other.reFetch, reFetch) || other.reFetch == reFetch) && (identical(other.error, error) || other.error == error)); } @override int get hashCode => Object.hash(runtimeType, isLoading, const DeepCollectionEquality().hash(data), lastFetch, reFetch, error); /// Create a copy of LoadableState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$LoadableStateImplCopyWith> get copyWith => __$$LoadableStateImplCopyWithImpl>(this, _$identity); } abstract class _LoadableState extends LoadableState { const factory _LoadableState( {required final bool isLoading, required final TState? data, required final int? lastFetch, required final void Function()? reFetch, required final LoadingError? error}) = _$LoadableStateImpl; const _LoadableState._() : super._(); @override bool get isLoading; @override TState? get data; @override int? get lastFetch; @override void Function()? get reFetch; @override LoadingError? get error; /// Create a copy of LoadableState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$LoadableStateImplCopyWith> get copyWith => throw _privateConstructorUsedError; }