2025-08-17 10:10:31 +07:00
// 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 'sales_loader_bloc.dart' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity < T > ( 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. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models' ,
);
/// @nodoc
mixin _$SalesLoaderEvent {
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
required TResult Function ( DateTime dateFrom , DateTime dateTo )
rangeDateChanged ,
2025-08-17 10:10:31 +07:00
required TResult Function () fectched ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult ? Function ( DateTime dateFrom , DateTime dateTo ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult ? Function () ? fectched ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult Function ( DateTime dateFrom , DateTime dateTo ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult Function () ? fectched ,
required TResult orElse (),
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
required TResult Function ( _RangeDateChanged value ) rangeDateChanged ,
2025-08-17 10:10:31 +07:00
required TResult Function ( _Fectched value ) fectched ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult ? Function ( _RangeDateChanged value ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult ? Function ( _Fectched value ) ? fectched ,
}) => throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult Function ( _RangeDateChanged value ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult Function ( _Fectched value ) ? fectched ,
required TResult orElse (),
}) => throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SalesLoaderEventCopyWith < $Res > {
factory $SalesLoaderEventCopyWith (
SalesLoaderEvent value ,
$Res Function ( SalesLoaderEvent ) then ,
) = _$SalesLoaderEventCopyWithImpl < $Res , SalesLoaderEvent > ;
}
/// @nodoc
class _ $SalesLoaderEventCopyWithImpl < $Res , $Val extends SalesLoaderEvent >
implements $SalesLoaderEventCopyWith < $Res > {
_$SalesLoaderEventCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SalesLoaderEvent
/// with the given fields replaced by the non-null parameter values.
}
2025-08-18 16:43:07 +07:00
/// @nodoc
abstract class _ $$RangeDateChangedImplCopyWith < $Res > {
factory _$$RangeDateChangedImplCopyWith (
_$RangeDateChangedImpl value ,
$Res Function ( _$RangeDateChangedImpl ) then ,
) = __$$RangeDateChangedImplCopyWithImpl < $Res > ;
@ useResult
$Res call ({ DateTime dateFrom , DateTime dateTo });
}
/// @nodoc
class __ $$RangeDateChangedImplCopyWithImpl < $Res >
extends _$SalesLoaderEventCopyWithImpl < $Res , _$RangeDateChangedImpl >
implements _$$RangeDateChangedImplCopyWith < $Res > {
__$$RangeDateChangedImplCopyWithImpl (
_$RangeDateChangedImpl _value ,
$Res Function ( _$RangeDateChangedImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of SalesLoaderEvent
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({ Object ? dateFrom = null , Object ? dateTo = null }) {
return _then (
_$RangeDateChangedImpl (
null == dateFrom
? _value . dateFrom
: dateFrom // ignore: cast_nullable_to_non_nullable
as DateTime ,
null == dateTo
? _value . dateTo
: dateTo // ignore: cast_nullable_to_non_nullable
as DateTime ,
),
);
}
}
/// @nodoc
class _ $RangeDateChangedImpl implements _RangeDateChanged {
const _$RangeDateChangedImpl ( this . dateFrom , this . dateTo );
@ override
final DateTime dateFrom ;
@ override
final DateTime dateTo ;
@ override
String toString () {
return 'SalesLoaderEvent.rangeDateChanged(dateFrom: $ dateFrom , dateTo: $ dateTo )' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$RangeDateChangedImpl &&
( identical ( other . dateFrom , dateFrom ) ||
other . dateFrom == dateFrom ) &&
( identical ( other . dateTo , dateTo ) || other . dateTo == dateTo ));
}
@ override
int get hashCode => Object . hash ( runtimeType , dateFrom , dateTo );
/// Create a copy of SalesLoaderEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$RangeDateChangedImplCopyWith < _$RangeDateChangedImpl > get copyWith =>
__$$RangeDateChangedImplCopyWithImpl < _$RangeDateChangedImpl > (
this ,
_$identity ,
);
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
required TResult Function ( DateTime dateFrom , DateTime dateTo )
rangeDateChanged ,
required TResult Function () fectched ,
}) {
return rangeDateChanged ( dateFrom , dateTo );
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
TResult ? Function ( DateTime dateFrom , DateTime dateTo ) ? rangeDateChanged ,
TResult ? Function () ? fectched ,
}) {
return rangeDateChanged ? . call ( dateFrom , dateTo );
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
TResult Function ( DateTime dateFrom , DateTime dateTo ) ? rangeDateChanged ,
TResult Function () ? fectched ,
required TResult orElse (),
}) {
if ( rangeDateChanged != null ) {
return rangeDateChanged ( dateFrom , dateTo );
}
return orElse ();
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
required TResult Function ( _RangeDateChanged value ) rangeDateChanged ,
required TResult Function ( _Fectched value ) fectched ,
}) {
return rangeDateChanged ( this );
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
TResult ? Function ( _RangeDateChanged value ) ? rangeDateChanged ,
TResult ? Function ( _Fectched value ) ? fectched ,
}) {
return rangeDateChanged ? . call ( this );
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
TResult Function ( _RangeDateChanged value ) ? rangeDateChanged ,
TResult Function ( _Fectched value ) ? fectched ,
required TResult orElse (),
}) {
if ( rangeDateChanged != null ) {
return rangeDateChanged ( this );
}
return orElse ();
}
}
abstract class _RangeDateChanged implements SalesLoaderEvent {
const factory _RangeDateChanged (
final DateTime dateFrom ,
final DateTime dateTo ,
) = _$RangeDateChangedImpl ;
DateTime get dateFrom ;
DateTime get dateTo ;
/// Create a copy of SalesLoaderEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$RangeDateChangedImplCopyWith < _$RangeDateChangedImpl > get copyWith =>
throw _privateConstructorUsedError ;
}
2025-08-17 10:10:31 +07:00
/// @nodoc
abstract class _ $$FectchedImplCopyWith < $Res > {
factory _$$FectchedImplCopyWith (
_$FectchedImpl value ,
$Res Function ( _$FectchedImpl ) then ,
) = __$$FectchedImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $$FectchedImplCopyWithImpl < $Res >
extends _$SalesLoaderEventCopyWithImpl < $Res , _$FectchedImpl >
implements _$$FectchedImplCopyWith < $Res > {
__$$FectchedImplCopyWithImpl (
_$FectchedImpl _value ,
$Res Function ( _$FectchedImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of SalesLoaderEvent
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $FectchedImpl implements _Fectched {
const _$FectchedImpl ();
@ override
String toString () {
return 'SalesLoaderEvent.fectched()' ;
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType && other is _$FectchedImpl );
}
@ override
int get hashCode => runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
required TResult Function ( DateTime dateFrom , DateTime dateTo )
rangeDateChanged ,
2025-08-17 10:10:31 +07:00
required TResult Function () fectched ,
}) {
return fectched ();
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult ? Function ( DateTime dateFrom , DateTime dateTo ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult ? Function () ? fectched ,
}) {
return fectched ? . call ();
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult Function ( DateTime dateFrom , DateTime dateTo ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult Function () ? fectched ,
required TResult orElse (),
}) {
if ( fectched != null ) {
return fectched ();
}
return orElse ();
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
required TResult Function ( _RangeDateChanged value ) rangeDateChanged ,
2025-08-17 10:10:31 +07:00
required TResult Function ( _Fectched value ) fectched ,
}) {
return fectched ( this );
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult ? Function ( _RangeDateChanged value ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult ? Function ( _Fectched value ) ? fectched ,
}) {
return fectched ? . call ( this );
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ?> ({
2025-08-18 16:43:07 +07:00
TResult Function ( _RangeDateChanged value ) ? rangeDateChanged ,
2025-08-17 10:10:31 +07:00
TResult Function ( _Fectched value ) ? fectched ,
required TResult orElse (),
}) {
if ( fectched != null ) {
return fectched ( this );
}
return orElse ();
}
}
abstract class _Fectched implements SalesLoaderEvent {
const factory _Fectched () = _$FectchedImpl ;
}
/// @nodoc
mixin _$SalesLoaderState {
SalesAnalytic get sales => throw _privateConstructorUsedError ;
Option < AnalyticFailure > get failureOptionSales =>
throw _privateConstructorUsedError ;
bool get isFetching => throw _privateConstructorUsedError ;
2025-08-18 16:43:07 +07:00
DateTime get dateFrom => throw _privateConstructorUsedError ;
DateTime get dateTo => throw _privateConstructorUsedError ;
2025-08-17 10:10:31 +07:00
/// Create a copy of SalesLoaderState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
$SalesLoaderStateCopyWith < SalesLoaderState > get copyWith =>
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SalesLoaderStateCopyWith < $Res > {
factory $SalesLoaderStateCopyWith (
SalesLoaderState value ,
$Res Function ( SalesLoaderState ) then ,
) = _$SalesLoaderStateCopyWithImpl < $Res , SalesLoaderState > ;
@ useResult
$Res call ({
SalesAnalytic sales ,
Option < AnalyticFailure > failureOptionSales ,
bool isFetching ,
2025-08-18 16:43:07 +07:00
DateTime dateFrom ,
DateTime dateTo ,
2025-08-17 10:10:31 +07:00
});
$SalesAnalyticCopyWith < $Res > get sales ;
}
/// @nodoc
class _ $SalesLoaderStateCopyWithImpl < $Res , $Val extends SalesLoaderState >
implements $SalesLoaderStateCopyWith < $Res > {
_$SalesLoaderStateCopyWithImpl ( this . _value , this . _then );
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of SalesLoaderState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? sales = null ,
Object ? failureOptionSales = null ,
Object ? isFetching = null ,
2025-08-18 16:43:07 +07:00
Object ? dateFrom = null ,
Object ? dateTo = null ,
2025-08-17 10:10:31 +07:00
}) {
return _then (
_value . copyWith (
sales: null == sales
? _value . sales
: sales // ignore: cast_nullable_to_non_nullable
as SalesAnalytic ,
failureOptionSales: null == failureOptionSales
? _value . failureOptionSales
: failureOptionSales // ignore: cast_nullable_to_non_nullable
as Option < AnalyticFailure > ,
isFetching: null == isFetching
? _value . isFetching
: isFetching // ignore: cast_nullable_to_non_nullable
as bool ,
2025-08-18 16:43:07 +07:00
dateFrom: null == dateFrom
? _value . dateFrom
: dateFrom // ignore: cast_nullable_to_non_nullable
as DateTime ,
dateTo: null == dateTo
? _value . dateTo
: dateTo // ignore: cast_nullable_to_non_nullable
as DateTime ,
2025-08-17 10:10:31 +07:00
)
as $Val ,
);
}
/// Create a copy of SalesLoaderState
/// with the given fields replaced by the non-null parameter values.
@ override
@ pragma ( 'vm:prefer-inline' )
$SalesAnalyticCopyWith < $Res > get sales {
return $SalesAnalyticCopyWith < $Res > ( _value . sales , ( value ) {
return _then ( _value . copyWith ( sales: value ) as $Val );
});
}
}
/// @nodoc
abstract class _ $$SalesLoaderStateImplCopyWith < $Res >
implements $SalesLoaderStateCopyWith < $Res > {
factory _$$SalesLoaderStateImplCopyWith (
_$SalesLoaderStateImpl value ,
$Res Function ( _$SalesLoaderStateImpl ) then ,
) = __$$SalesLoaderStateImplCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call ({
SalesAnalytic sales ,
Option < AnalyticFailure > failureOptionSales ,
bool isFetching ,
2025-08-18 16:43:07 +07:00
DateTime dateFrom ,
DateTime dateTo ,
2025-08-17 10:10:31 +07:00
});
@ override
$SalesAnalyticCopyWith < $Res > get sales ;
}
/// @nodoc
class __ $$SalesLoaderStateImplCopyWithImpl < $Res >
extends _$SalesLoaderStateCopyWithImpl < $Res , _$SalesLoaderStateImpl >
implements _$$SalesLoaderStateImplCopyWith < $Res > {
__$$SalesLoaderStateImplCopyWithImpl (
_$SalesLoaderStateImpl _value ,
$Res Function ( _$SalesLoaderStateImpl ) _then ,
) : super ( _value , _then );
/// Create a copy of SalesLoaderState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( 'vm:prefer-inline' )
@ override
$Res call ({
Object ? sales = null ,
Object ? failureOptionSales = null ,
Object ? isFetching = null ,
2025-08-18 16:43:07 +07:00
Object ? dateFrom = null ,
Object ? dateTo = null ,
2025-08-17 10:10:31 +07:00
}) {
return _then (
_$SalesLoaderStateImpl (
sales: null == sales
? _value . sales
: sales // ignore: cast_nullable_to_non_nullable
as SalesAnalytic ,
failureOptionSales: null == failureOptionSales
? _value . failureOptionSales
: failureOptionSales // ignore: cast_nullable_to_non_nullable
as Option < AnalyticFailure > ,
isFetching: null == isFetching
? _value . isFetching
: isFetching // ignore: cast_nullable_to_non_nullable
as bool ,
2025-08-18 16:43:07 +07:00
dateFrom: null == dateFrom
? _value . dateFrom
: dateFrom // ignore: cast_nullable_to_non_nullable
as DateTime ,
dateTo: null == dateTo
? _value . dateTo
: dateTo // ignore: cast_nullable_to_non_nullable
as DateTime ,
2025-08-17 10:10:31 +07:00
),
);
}
}
/// @nodoc
class _ $SalesLoaderStateImpl implements _SalesLoaderState {
const _$SalesLoaderStateImpl ({
required this . sales ,
required this . failureOptionSales ,
this . isFetching = false ,
2025-08-18 16:43:07 +07:00
required this . dateFrom ,
required this . dateTo ,
2025-08-17 10:10:31 +07:00
});
@ override
final SalesAnalytic sales ;
@ override
final Option < AnalyticFailure > failureOptionSales ;
@ override
@ JsonKey ()
final bool isFetching ;
2025-08-18 16:43:07 +07:00
@ override
final DateTime dateFrom ;
@ override
final DateTime dateTo ;
2025-08-17 10:10:31 +07:00
@ override
String toString () {
2025-08-18 16:43:07 +07:00
return 'SalesLoaderState(sales: $ sales , failureOptionSales: $ failureOptionSales , isFetching: $ isFetching , dateFrom: $ dateFrom , dateTo: $ dateTo )' ;
2025-08-17 10:10:31 +07:00
}
@ override
bool operator == ( Object other ) {
return identical ( this , other ) ||
( other . runtimeType == runtimeType &&
other is _$SalesLoaderStateImpl &&
( identical ( other . sales , sales ) || other . sales == sales ) &&
( identical ( other . failureOptionSales , failureOptionSales ) ||
other . failureOptionSales == failureOptionSales ) &&
( identical ( other . isFetching , isFetching ) ||
2025-08-18 16:43:07 +07:00
other . isFetching == isFetching ) &&
( identical ( other . dateFrom , dateFrom ) ||
other . dateFrom == dateFrom ) &&
( identical ( other . dateTo , dateTo ) || other . dateTo == dateTo ));
2025-08-17 10:10:31 +07:00
}
@ override
2025-08-18 16:43:07 +07:00
int get hashCode => Object . hash (
runtimeType ,
sales ,
failureOptionSales ,
isFetching ,
dateFrom ,
dateTo ,
);
2025-08-17 10:10:31 +07:00
/// Create a copy of SalesLoaderState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( 'vm:prefer-inline' )
_$$SalesLoaderStateImplCopyWith < _$SalesLoaderStateImpl > get copyWith =>
__$$SalesLoaderStateImplCopyWithImpl < _$SalesLoaderStateImpl > (
this ,
_$identity ,
);
}
abstract class _SalesLoaderState implements SalesLoaderState {
const factory _SalesLoaderState ({
required final SalesAnalytic sales ,
required final Option < AnalyticFailure > failureOptionSales ,
final bool isFetching ,
2025-08-18 16:43:07 +07:00
required final DateTime dateFrom ,
required final DateTime dateTo ,
2025-08-17 10:10:31 +07:00
}) = _$SalesLoaderStateImpl ;
@ override
SalesAnalytic get sales ;
@ override
Option < AnalyticFailure > get failureOptionSales ;
@ override
bool get isFetching ;
2025-08-18 16:43:07 +07:00
@ override
DateTime get dateFrom ;
@ override
DateTime get dateTo ;
2025-08-17 10:10:31 +07:00
/// Create a copy of SalesLoaderState
/// with the given fields replaced by the non-null parameter values.
@ override
@ JsonKey ( includeFromJson: false , includeToJson: false )
_$$SalesLoaderStateImplCopyWith < _$SalesLoaderStateImpl > get copyWith =>
throw _privateConstructorUsedError ;
}