// 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 'customer_loader_bloc.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 _$CustomerLoaderEvent { @optionalTypeArgs TResult when({ required TResult Function(Customer customer) setSelectedCustomer, required TResult Function(bool isRefresh) fetched, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function(Customer customer)? setSelectedCustomer, TResult? Function(bool isRefresh)? fetched, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function(Customer customer)? setSelectedCustomer, TResult Function(bool isRefresh)? fetched, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_SetSelectedCustomer value) setSelectedCustomer, required TResult Function(_Fetched value) fetched, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SetSelectedCustomer value)? setSelectedCustomer, TResult? Function(_Fetched value)? fetched, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_SetSelectedCustomer value)? setSelectedCustomer, TResult Function(_Fetched value)? fetched, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $CustomerLoaderEventCopyWith<$Res> { factory $CustomerLoaderEventCopyWith( CustomerLoaderEvent value, $Res Function(CustomerLoaderEvent) then, ) = _$CustomerLoaderEventCopyWithImpl<$Res, CustomerLoaderEvent>; } /// @nodoc class _$CustomerLoaderEventCopyWithImpl<$Res, $Val extends CustomerLoaderEvent> implements $CustomerLoaderEventCopyWith<$Res> { _$CustomerLoaderEventCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. } /// @nodoc abstract class _$$SetSelectedCustomerImplCopyWith<$Res> { factory _$$SetSelectedCustomerImplCopyWith( _$SetSelectedCustomerImpl value, $Res Function(_$SetSelectedCustomerImpl) then, ) = __$$SetSelectedCustomerImplCopyWithImpl<$Res>; @useResult $Res call({Customer customer}); $CustomerCopyWith<$Res> get customer; } /// @nodoc class __$$SetSelectedCustomerImplCopyWithImpl<$Res> extends _$CustomerLoaderEventCopyWithImpl<$Res, _$SetSelectedCustomerImpl> implements _$$SetSelectedCustomerImplCopyWith<$Res> { __$$SetSelectedCustomerImplCopyWithImpl( _$SetSelectedCustomerImpl _value, $Res Function(_$SetSelectedCustomerImpl) _then, ) : super(_value, _then); /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? customer = null}) { return _then( _$SetSelectedCustomerImpl( null == customer ? _value.customer : customer // ignore: cast_nullable_to_non_nullable as Customer, ), ); } /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CustomerCopyWith<$Res> get customer { return $CustomerCopyWith<$Res>(_value.customer, (value) { return _then(_value.copyWith(customer: value)); }); } } /// @nodoc class _$SetSelectedCustomerImpl implements _SetSelectedCustomer { const _$SetSelectedCustomerImpl(this.customer); @override final Customer customer; @override String toString() { return 'CustomerLoaderEvent.setSelectedCustomer(customer: $customer)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SetSelectedCustomerImpl && (identical(other.customer, customer) || other.customer == customer)); } @override int get hashCode => Object.hash(runtimeType, customer); /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SetSelectedCustomerImplCopyWith<_$SetSelectedCustomerImpl> get copyWith => __$$SetSelectedCustomerImplCopyWithImpl<_$SetSelectedCustomerImpl>( this, _$identity, ); @override @optionalTypeArgs TResult when({ required TResult Function(Customer customer) setSelectedCustomer, required TResult Function(bool isRefresh) fetched, }) { return setSelectedCustomer(customer); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(Customer customer)? setSelectedCustomer, TResult? Function(bool isRefresh)? fetched, }) { return setSelectedCustomer?.call(customer); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(Customer customer)? setSelectedCustomer, TResult Function(bool isRefresh)? fetched, required TResult orElse(), }) { if (setSelectedCustomer != null) { return setSelectedCustomer(customer); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_SetSelectedCustomer value) setSelectedCustomer, required TResult Function(_Fetched value) fetched, }) { return setSelectedCustomer(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SetSelectedCustomer value)? setSelectedCustomer, TResult? Function(_Fetched value)? fetched, }) { return setSelectedCustomer?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_SetSelectedCustomer value)? setSelectedCustomer, TResult Function(_Fetched value)? fetched, required TResult orElse(), }) { if (setSelectedCustomer != null) { return setSelectedCustomer(this); } return orElse(); } } abstract class _SetSelectedCustomer implements CustomerLoaderEvent { const factory _SetSelectedCustomer(final Customer customer) = _$SetSelectedCustomerImpl; Customer get customer; /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) _$$SetSelectedCustomerImplCopyWith<_$SetSelectedCustomerImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$FetchedImplCopyWith<$Res> { factory _$$FetchedImplCopyWith( _$FetchedImpl value, $Res Function(_$FetchedImpl) then, ) = __$$FetchedImplCopyWithImpl<$Res>; @useResult $Res call({bool isRefresh}); } /// @nodoc class __$$FetchedImplCopyWithImpl<$Res> extends _$CustomerLoaderEventCopyWithImpl<$Res, _$FetchedImpl> implements _$$FetchedImplCopyWith<$Res> { __$$FetchedImplCopyWithImpl( _$FetchedImpl _value, $Res Function(_$FetchedImpl) _then, ) : super(_value, _then); /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? isRefresh = null}) { return _then( _$FetchedImpl( isRefresh: null == isRefresh ? _value.isRefresh : isRefresh // ignore: cast_nullable_to_non_nullable as bool, ), ); } } /// @nodoc class _$FetchedImpl implements _Fetched { const _$FetchedImpl({this.isRefresh = false}); @override @JsonKey() final bool isRefresh; @override String toString() { return 'CustomerLoaderEvent.fetched(isRefresh: $isRefresh)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$FetchedImpl && (identical(other.isRefresh, isRefresh) || other.isRefresh == isRefresh)); } @override int get hashCode => Object.hash(runtimeType, isRefresh); /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$FetchedImplCopyWith<_$FetchedImpl> get copyWith => __$$FetchedImplCopyWithImpl<_$FetchedImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function(Customer customer) setSelectedCustomer, required TResult Function(bool isRefresh) fetched, }) { return fetched(isRefresh); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(Customer customer)? setSelectedCustomer, TResult? Function(bool isRefresh)? fetched, }) { return fetched?.call(isRefresh); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(Customer customer)? setSelectedCustomer, TResult Function(bool isRefresh)? fetched, required TResult orElse(), }) { if (fetched != null) { return fetched(isRefresh); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_SetSelectedCustomer value) setSelectedCustomer, required TResult Function(_Fetched value) fetched, }) { return fetched(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_SetSelectedCustomer value)? setSelectedCustomer, TResult? Function(_Fetched value)? fetched, }) { return fetched?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_SetSelectedCustomer value)? setSelectedCustomer, TResult Function(_Fetched value)? fetched, required TResult orElse(), }) { if (fetched != null) { return fetched(this); } return orElse(); } } abstract class _Fetched implements CustomerLoaderEvent { const factory _Fetched({final bool isRefresh}) = _$FetchedImpl; bool get isRefresh; /// Create a copy of CustomerLoaderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) _$$FetchedImplCopyWith<_$FetchedImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$CustomerLoaderState { List get customers => throw _privateConstructorUsedError; Option get failureOrOption => throw _privateConstructorUsedError; Customer? get selectedCustomer => throw _privateConstructorUsedError; bool get isFetching => throw _privateConstructorUsedError; bool get hasReachedMax => throw _privateConstructorUsedError; int get page => throw _privateConstructorUsedError; /// Create a copy of CustomerLoaderState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CustomerLoaderStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CustomerLoaderStateCopyWith<$Res> { factory $CustomerLoaderStateCopyWith( CustomerLoaderState value, $Res Function(CustomerLoaderState) then, ) = _$CustomerLoaderStateCopyWithImpl<$Res, CustomerLoaderState>; @useResult $Res call({ List customers, Option failureOrOption, Customer? selectedCustomer, bool isFetching, bool hasReachedMax, int page, }); $CustomerCopyWith<$Res>? get selectedCustomer; } /// @nodoc class _$CustomerLoaderStateCopyWithImpl<$Res, $Val extends CustomerLoaderState> implements $CustomerLoaderStateCopyWith<$Res> { _$CustomerLoaderStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CustomerLoaderState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? customers = null, Object? failureOrOption = null, Object? selectedCustomer = freezed, Object? isFetching = null, Object? hasReachedMax = null, Object? page = null, }) { return _then( _value.copyWith( customers: null == customers ? _value.customers : customers // ignore: cast_nullable_to_non_nullable as List, failureOrOption: null == failureOrOption ? _value.failureOrOption : failureOrOption // ignore: cast_nullable_to_non_nullable as Option, selectedCustomer: freezed == selectedCustomer ? _value.selectedCustomer : selectedCustomer // ignore: cast_nullable_to_non_nullable as Customer?, isFetching: null == isFetching ? _value.isFetching : isFetching // ignore: cast_nullable_to_non_nullable as bool, hasReachedMax: null == hasReachedMax ? _value.hasReachedMax : hasReachedMax // ignore: cast_nullable_to_non_nullable as bool, page: null == page ? _value.page : page // ignore: cast_nullable_to_non_nullable as int, ) as $Val, ); } /// Create a copy of CustomerLoaderState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $CustomerCopyWith<$Res>? get selectedCustomer { if (_value.selectedCustomer == null) { return null; } return $CustomerCopyWith<$Res>(_value.selectedCustomer!, (value) { return _then(_value.copyWith(selectedCustomer: value) as $Val); }); } } /// @nodoc abstract class _$$CustomerLoaderStateImplCopyWith<$Res> implements $CustomerLoaderStateCopyWith<$Res> { factory _$$CustomerLoaderStateImplCopyWith( _$CustomerLoaderStateImpl value, $Res Function(_$CustomerLoaderStateImpl) then, ) = __$$CustomerLoaderStateImplCopyWithImpl<$Res>; @override @useResult $Res call({ List customers, Option failureOrOption, Customer? selectedCustomer, bool isFetching, bool hasReachedMax, int page, }); @override $CustomerCopyWith<$Res>? get selectedCustomer; } /// @nodoc class __$$CustomerLoaderStateImplCopyWithImpl<$Res> extends _$CustomerLoaderStateCopyWithImpl<$Res, _$CustomerLoaderStateImpl> implements _$$CustomerLoaderStateImplCopyWith<$Res> { __$$CustomerLoaderStateImplCopyWithImpl( _$CustomerLoaderStateImpl _value, $Res Function(_$CustomerLoaderStateImpl) _then, ) : super(_value, _then); /// Create a copy of CustomerLoaderState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? customers = null, Object? failureOrOption = null, Object? selectedCustomer = freezed, Object? isFetching = null, Object? hasReachedMax = null, Object? page = null, }) { return _then( _$CustomerLoaderStateImpl( customers: null == customers ? _value._customers : customers // ignore: cast_nullable_to_non_nullable as List, failureOrOption: null == failureOrOption ? _value.failureOrOption : failureOrOption // ignore: cast_nullable_to_non_nullable as Option, selectedCustomer: freezed == selectedCustomer ? _value.selectedCustomer : selectedCustomer // ignore: cast_nullable_to_non_nullable as Customer?, isFetching: null == isFetching ? _value.isFetching : isFetching // ignore: cast_nullable_to_non_nullable as bool, hasReachedMax: null == hasReachedMax ? _value.hasReachedMax : hasReachedMax // ignore: cast_nullable_to_non_nullable as bool, page: null == page ? _value.page : page // ignore: cast_nullable_to_non_nullable as int, ), ); } } /// @nodoc class _$CustomerLoaderStateImpl implements _CustomerLoaderState { _$CustomerLoaderStateImpl({ required final List customers, required this.failureOrOption, this.selectedCustomer, this.isFetching = false, this.hasReachedMax = false, this.page = 1, }) : _customers = customers; final List _customers; @override List get customers { if (_customers is EqualUnmodifiableListView) return _customers; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_customers); } @override final Option failureOrOption; @override final Customer? selectedCustomer; @override @JsonKey() final bool isFetching; @override @JsonKey() final bool hasReachedMax; @override @JsonKey() final int page; @override String toString() { return 'CustomerLoaderState(customers: $customers, failureOrOption: $failureOrOption, selectedCustomer: $selectedCustomer, isFetching: $isFetching, hasReachedMax: $hasReachedMax, page: $page)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CustomerLoaderStateImpl && const DeepCollectionEquality().equals( other._customers, _customers, ) && (identical(other.failureOrOption, failureOrOption) || other.failureOrOption == failureOrOption) && (identical(other.selectedCustomer, selectedCustomer) || other.selectedCustomer == selectedCustomer) && (identical(other.isFetching, isFetching) || other.isFetching == isFetching) && (identical(other.hasReachedMax, hasReachedMax) || other.hasReachedMax == hasReachedMax) && (identical(other.page, page) || other.page == page)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_customers), failureOrOption, selectedCustomer, isFetching, hasReachedMax, page, ); /// Create a copy of CustomerLoaderState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CustomerLoaderStateImplCopyWith<_$CustomerLoaderStateImpl> get copyWith => __$$CustomerLoaderStateImplCopyWithImpl<_$CustomerLoaderStateImpl>( this, _$identity, ); } abstract class _CustomerLoaderState implements CustomerLoaderState { factory _CustomerLoaderState({ required final List customers, required final Option failureOrOption, final Customer? selectedCustomer, final bool isFetching, final bool hasReachedMax, final int page, }) = _$CustomerLoaderStateImpl; @override List get customers; @override Option get failureOrOption; @override Customer? get selectedCustomer; @override bool get isFetching; @override bool get hasReachedMax; @override int get page; /// Create a copy of CustomerLoaderState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CustomerLoaderStateImplCopyWith<_$CustomerLoaderStateImpl> get copyWith => throw _privateConstructorUsedError; }