2025-07-30 22:38:44 +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 ' day_sales_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 _ $DaySalesEvent {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) started ,
required TResult Function ( DateTime date ) getDaySales ,
2025-08-02 10:50:48 +07:00
required TResult Function ( DateTime startDate , DateTime endDate )
getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? started ,
TResult ? Function ( DateTime date ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult ? Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? started ,
TResult Function ( DateTime date ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Started value ) started ,
required TResult Function ( _GetDaySales value ) getDaySales ,
2025-08-02 10:50:48 +07:00
required TResult Function ( _GetRangeDateSales value ) getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Started value ) ? started ,
TResult ? Function ( _GetDaySales value ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult ? Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Started value ) ? started ,
TResult Function ( _GetDaySales value ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DaySalesEventCopyWith < $Res > {
factory $DaySalesEventCopyWith (
DaySalesEvent value , $Res Function ( DaySalesEvent ) then ) =
_ $DaySalesEventCopyWithImpl < $Res , DaySalesEvent > ;
}
/// @nodoc
class _ $DaySalesEventCopyWithImpl < $Res , $Val extends DaySalesEvent >
implements $DaySalesEventCopyWith < $Res > {
_ $DaySalesEventCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
abstract class _ $ $StartedImplCopyWith < $Res > {
factory _ $ $StartedImplCopyWith (
_ $StartedImpl value , $Res Function ( _ $StartedImpl ) then ) =
__ $ $StartedImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $ $StartedImplCopyWithImpl < $Res >
extends _ $DaySalesEventCopyWithImpl < $Res , _ $StartedImpl >
implements _ $ $StartedImplCopyWith < $Res > {
__ $ $StartedImplCopyWithImpl (
_ $StartedImpl _value , $Res Function ( _ $StartedImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $StartedImpl implements _Started {
const _ $StartedImpl ( ) ;
@ override
String toString ( ) {
return ' DaySalesEvent.started() ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & & other is _ $StartedImpl ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) started ,
required TResult Function ( DateTime date ) getDaySales ,
2025-08-02 10:50:48 +07:00
required TResult Function ( DateTime startDate , DateTime endDate )
getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return started ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? started ,
TResult ? Function ( DateTime date ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult ? Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return started ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? started ,
TResult Function ( DateTime date ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
required TResult orElse ( ) ,
} ) {
if ( started ! = null ) {
return started ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Started value ) started ,
required TResult Function ( _GetDaySales value ) getDaySales ,
2025-08-02 10:50:48 +07:00
required TResult Function ( _GetRangeDateSales value ) getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return started ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Started value ) ? started ,
TResult ? Function ( _GetDaySales value ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult ? Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return started ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Started value ) ? started ,
TResult Function ( _GetDaySales value ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
required TResult orElse ( ) ,
} ) {
if ( started ! = null ) {
return started ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _Started implements DaySalesEvent {
const factory _Started ( ) = _ $StartedImpl ;
}
/// @nodoc
abstract class _ $ $GetDaySalesImplCopyWith < $Res > {
factory _ $ $GetDaySalesImplCopyWith (
_ $GetDaySalesImpl value , $Res Function ( _ $GetDaySalesImpl ) then ) =
__ $ $GetDaySalesImplCopyWithImpl < $Res > ;
@ useResult
$Res call ( { DateTime date } ) ;
}
/// @nodoc
class __ $ $GetDaySalesImplCopyWithImpl < $Res >
extends _ $DaySalesEventCopyWithImpl < $Res , _ $GetDaySalesImpl >
implements _ $ $GetDaySalesImplCopyWith < $Res > {
__ $ $GetDaySalesImplCopyWithImpl (
_ $GetDaySalesImpl _value , $Res Function ( _ $GetDaySalesImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? date = null ,
} ) {
return _then ( _ $GetDaySalesImpl (
null = = date
? _value . date
: date // ignore: cast_nullable_to_non_nullable
as DateTime ,
) ) ;
}
}
/// @nodoc
class _ $GetDaySalesImpl implements _GetDaySales {
const _ $GetDaySalesImpl ( this . date ) ;
@ override
final DateTime date ;
@ override
String toString ( ) {
return ' DaySalesEvent.getDaySales(date: $ date ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $GetDaySalesImpl & &
( identical ( other . date , date ) | | other . date = = date ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , date ) ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $GetDaySalesImplCopyWith < _ $GetDaySalesImpl > get copyWith = >
__ $ $GetDaySalesImplCopyWithImpl < _ $GetDaySalesImpl > ( this , _ $identity ) ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) started ,
required TResult Function ( DateTime date ) getDaySales ,
2025-08-02 10:50:48 +07:00
required TResult Function ( DateTime startDate , DateTime endDate )
getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return getDaySales ( date ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? started ,
TResult ? Function ( DateTime date ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult ? Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return getDaySales ? . call ( date ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? started ,
TResult Function ( DateTime date ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
required TResult orElse ( ) ,
} ) {
if ( getDaySales ! = null ) {
return getDaySales ( date ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Started value ) started ,
required TResult Function ( _GetDaySales value ) getDaySales ,
2025-08-02 10:50:48 +07:00
required TResult Function ( _GetRangeDateSales value ) getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return getDaySales ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Started value ) ? started ,
TResult ? Function ( _GetDaySales value ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult ? Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
} ) {
return getDaySales ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Started value ) ? started ,
TResult Function ( _GetDaySales value ) ? getDaySales ,
2025-08-02 10:50:48 +07:00
TResult Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
2025-07-30 22:38:44 +07:00
required TResult orElse ( ) ,
} ) {
if ( getDaySales ! = null ) {
return getDaySales ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _GetDaySales implements DaySalesEvent {
const factory _GetDaySales ( final DateTime date ) = _ $GetDaySalesImpl ;
DateTime get date ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $GetDaySalesImplCopyWith < _ $GetDaySalesImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2025-08-02 10:50:48 +07:00
/// @nodoc
abstract class _ $ $GetRangeDateSalesImplCopyWith < $Res > {
factory _ $ $GetRangeDateSalesImplCopyWith ( _ $GetRangeDateSalesImpl value ,
$Res Function ( _ $GetRangeDateSalesImpl ) then ) =
__ $ $GetRangeDateSalesImplCopyWithImpl < $Res > ;
@ useResult
$Res call ( { DateTime startDate , DateTime endDate } ) ;
}
/// @nodoc
class __ $ $GetRangeDateSalesImplCopyWithImpl < $Res >
extends _ $DaySalesEventCopyWithImpl < $Res , _ $GetRangeDateSalesImpl >
implements _ $ $GetRangeDateSalesImplCopyWith < $Res > {
__ $ $GetRangeDateSalesImplCopyWithImpl ( _ $GetRangeDateSalesImpl _value ,
$Res Function ( _ $GetRangeDateSalesImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? startDate = null ,
Object ? endDate = null ,
} ) {
return _then ( _ $GetRangeDateSalesImpl (
null = = startDate
? _value . startDate
: startDate // ignore: cast_nullable_to_non_nullable
as DateTime ,
null = = endDate
? _value . endDate
: endDate // ignore: cast_nullable_to_non_nullable
as DateTime ,
) ) ;
}
}
/// @nodoc
class _ $GetRangeDateSalesImpl implements _GetRangeDateSales {
const _ $GetRangeDateSalesImpl ( this . startDate , this . endDate ) ;
@ override
final DateTime startDate ;
@ override
final DateTime endDate ;
@ override
String toString ( ) {
return ' DaySalesEvent.getRangeDateSales(startDate: $ startDate , endDate: $ endDate ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $GetRangeDateSalesImpl & &
( identical ( other . startDate , startDate ) | |
other . startDate = = startDate ) & &
( identical ( other . endDate , endDate ) | | other . endDate = = endDate ) ) ;
}
@ override
int get hashCode = > Object . hash ( runtimeType , startDate , endDate ) ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $GetRangeDateSalesImplCopyWith < _ $GetRangeDateSalesImpl > get copyWith = >
__ $ $GetRangeDateSalesImplCopyWithImpl < _ $GetRangeDateSalesImpl > (
this , _ $identity ) ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) started ,
required TResult Function ( DateTime date ) getDaySales ,
required TResult Function ( DateTime startDate , DateTime endDate )
getRangeDateSales ,
} ) {
return getRangeDateSales ( startDate , endDate ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? started ,
TResult ? Function ( DateTime date ) ? getDaySales ,
TResult ? Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
} ) {
return getRangeDateSales ? . call ( startDate , endDate ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? started ,
TResult Function ( DateTime date ) ? getDaySales ,
TResult Function ( DateTime startDate , DateTime endDate ) ? getRangeDateSales ,
required TResult orElse ( ) ,
} ) {
if ( getRangeDateSales ! = null ) {
return getRangeDateSales ( startDate , endDate ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Started value ) started ,
required TResult Function ( _GetDaySales value ) getDaySales ,
required TResult Function ( _GetRangeDateSales value ) getRangeDateSales ,
} ) {
return getRangeDateSales ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Started value ) ? started ,
TResult ? Function ( _GetDaySales value ) ? getDaySales ,
TResult ? Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
} ) {
return getRangeDateSales ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Started value ) ? started ,
TResult Function ( _GetDaySales value ) ? getDaySales ,
TResult Function ( _GetRangeDateSales value ) ? getRangeDateSales ,
required TResult orElse ( ) ,
} ) {
if ( getRangeDateSales ! = null ) {
return getRangeDateSales ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _GetRangeDateSales implements DaySalesEvent {
const factory _GetRangeDateSales (
final DateTime startDate , final DateTime endDate ) =
_ $GetRangeDateSalesImpl ;
DateTime get startDate ;
DateTime get endDate ;
/// Create a copy of DaySalesEvent
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $GetRangeDateSalesImplCopyWith < _ $GetRangeDateSalesImpl > get copyWith = >
throw _privateConstructorUsedError ;
}
2025-07-30 22:38:44 +07:00
/// @nodoc
mixin _ $DaySalesState {
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) initial ,
required TResult Function ( ) loading ,
required TResult Function ( List < OrderModel > orders ) loaded ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? initial ,
TResult ? Function ( ) ? loading ,
TResult ? Function ( List < OrderModel > orders ) ? loaded ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? initial ,
TResult Function ( ) ? loading ,
TResult Function ( List < OrderModel > orders ) ? loaded ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Initial value ) initial ,
required TResult Function ( _Loading value ) loading ,
required TResult Function ( _Loaded value ) loaded ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Initial value ) ? initial ,
TResult ? Function ( _Loading value ) ? loading ,
TResult ? Function ( _Loaded value ) ? loaded ,
} ) = >
throw _privateConstructorUsedError ;
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Initial value ) ? initial ,
TResult Function ( _Loading value ) ? loading ,
TResult Function ( _Loaded value ) ? loaded ,
required TResult orElse ( ) ,
} ) = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $DaySalesStateCopyWith < $Res > {
factory $DaySalesStateCopyWith (
DaySalesState value , $Res Function ( DaySalesState ) then ) =
_ $DaySalesStateCopyWithImpl < $Res , DaySalesState > ;
}
/// @nodoc
class _ $DaySalesStateCopyWithImpl < $Res , $Val extends DaySalesState >
implements $DaySalesStateCopyWith < $Res > {
_ $DaySalesStateCopyWithImpl ( this . _value , this . _then ) ;
// ignore: unused_field
final $Val _value ;
// ignore: unused_field
final $Res Function ( $Val ) _then ;
/// Create a copy of DaySalesState
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
abstract class _ $ $InitialImplCopyWith < $Res > {
factory _ $ $InitialImplCopyWith (
_ $InitialImpl value , $Res Function ( _ $InitialImpl ) then ) =
__ $ $InitialImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $ $InitialImplCopyWithImpl < $Res >
extends _ $DaySalesStateCopyWithImpl < $Res , _ $InitialImpl >
implements _ $ $InitialImplCopyWith < $Res > {
__ $ $InitialImplCopyWithImpl (
_ $InitialImpl _value , $Res Function ( _ $InitialImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of DaySalesState
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $InitialImpl implements _Initial {
const _ $InitialImpl ( ) ;
@ override
String toString ( ) {
return ' DaySalesState.initial() ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & & other is _ $InitialImpl ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) initial ,
required TResult Function ( ) loading ,
required TResult Function ( List < OrderModel > orders ) loaded ,
} ) {
return initial ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? initial ,
TResult ? Function ( ) ? loading ,
TResult ? Function ( List < OrderModel > orders ) ? loaded ,
} ) {
return initial ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? initial ,
TResult Function ( ) ? loading ,
TResult Function ( List < OrderModel > orders ) ? loaded ,
required TResult orElse ( ) ,
} ) {
if ( initial ! = null ) {
return initial ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Initial value ) initial ,
required TResult Function ( _Loading value ) loading ,
required TResult Function ( _Loaded value ) loaded ,
} ) {
return initial ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Initial value ) ? initial ,
TResult ? Function ( _Loading value ) ? loading ,
TResult ? Function ( _Loaded value ) ? loaded ,
} ) {
return initial ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Initial value ) ? initial ,
TResult Function ( _Loading value ) ? loading ,
TResult Function ( _Loaded value ) ? loaded ,
required TResult orElse ( ) ,
} ) {
if ( initial ! = null ) {
return initial ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _Initial implements DaySalesState {
const factory _Initial ( ) = _ $InitialImpl ;
}
/// @nodoc
abstract class _ $ $LoadingImplCopyWith < $Res > {
factory _ $ $LoadingImplCopyWith (
_ $LoadingImpl value , $Res Function ( _ $LoadingImpl ) then ) =
__ $ $LoadingImplCopyWithImpl < $Res > ;
}
/// @nodoc
class __ $ $LoadingImplCopyWithImpl < $Res >
extends _ $DaySalesStateCopyWithImpl < $Res , _ $LoadingImpl >
implements _ $ $LoadingImplCopyWith < $Res > {
__ $ $LoadingImplCopyWithImpl (
_ $LoadingImpl _value , $Res Function ( _ $LoadingImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of DaySalesState
/// with the given fields replaced by the non-null parameter values.
}
/// @nodoc
class _ $LoadingImpl implements _Loading {
const _ $LoadingImpl ( ) ;
@ override
String toString ( ) {
return ' DaySalesState.loading() ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & & other is _ $LoadingImpl ) ;
}
@ override
int get hashCode = > runtimeType . hashCode ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) initial ,
required TResult Function ( ) loading ,
required TResult Function ( List < OrderModel > orders ) loaded ,
} ) {
return loading ( ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? initial ,
TResult ? Function ( ) ? loading ,
TResult ? Function ( List < OrderModel > orders ) ? loaded ,
} ) {
return loading ? . call ( ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? initial ,
TResult Function ( ) ? loading ,
TResult Function ( List < OrderModel > orders ) ? loaded ,
required TResult orElse ( ) ,
} ) {
if ( loading ! = null ) {
return loading ( ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Initial value ) initial ,
required TResult Function ( _Loading value ) loading ,
required TResult Function ( _Loaded value ) loaded ,
} ) {
return loading ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Initial value ) ? initial ,
TResult ? Function ( _Loading value ) ? loading ,
TResult ? Function ( _Loaded value ) ? loaded ,
} ) {
return loading ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Initial value ) ? initial ,
TResult Function ( _Loading value ) ? loading ,
TResult Function ( _Loaded value ) ? loaded ,
required TResult orElse ( ) ,
} ) {
if ( loading ! = null ) {
return loading ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _Loading implements DaySalesState {
const factory _Loading ( ) = _ $LoadingImpl ;
}
/// @nodoc
abstract class _ $ $LoadedImplCopyWith < $Res > {
factory _ $ $LoadedImplCopyWith (
_ $LoadedImpl value , $Res Function ( _ $LoadedImpl ) then ) =
__ $ $LoadedImplCopyWithImpl < $Res > ;
@ useResult
$Res call ( { List < OrderModel > orders } ) ;
}
/// @nodoc
class __ $ $LoadedImplCopyWithImpl < $Res >
extends _ $DaySalesStateCopyWithImpl < $Res , _ $LoadedImpl >
implements _ $ $LoadedImplCopyWith < $Res > {
__ $ $LoadedImplCopyWithImpl (
_ $LoadedImpl _value , $Res Function ( _ $LoadedImpl ) _then )
: super ( _value , _then ) ;
/// Create a copy of DaySalesState
/// with the given fields replaced by the non-null parameter values.
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? orders = null ,
} ) {
return _then ( _ $LoadedImpl (
null = = orders
? _value . _orders
: orders // ignore: cast_nullable_to_non_nullable
as List < OrderModel > ,
) ) ;
}
}
/// @nodoc
class _ $LoadedImpl implements _Loaded {
const _ $LoadedImpl ( final List < OrderModel > orders ) : _orders = orders ;
final List < OrderModel > _orders ;
@ override
List < OrderModel > get orders {
if ( _orders is EqualUnmodifiableListView ) return _orders ;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( _orders ) ;
}
@ override
String toString ( ) {
return ' DaySalesState.loaded(orders: $ orders ) ' ;
}
@ override
bool operator = = ( Object other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $LoadedImpl & &
const DeepCollectionEquality ( ) . equals ( other . _orders , _orders ) ) ;
}
@ override
int get hashCode = >
Object . hash ( runtimeType , const DeepCollectionEquality ( ) . hash ( _orders ) ) ;
/// Create a copy of DaySalesState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $LoadedImplCopyWith < _ $LoadedImpl > get copyWith = >
__ $ $LoadedImplCopyWithImpl < _ $LoadedImpl > ( this , _ $identity ) ;
@ override
@ optionalTypeArgs
TResult when < TResult extends Object ? > ( {
required TResult Function ( ) initial ,
required TResult Function ( ) loading ,
required TResult Function ( List < OrderModel > orders ) loaded ,
} ) {
return loaded ( orders ) ;
}
@ override
@ optionalTypeArgs
TResult ? whenOrNull < TResult extends Object ? > ( {
TResult ? Function ( ) ? initial ,
TResult ? Function ( ) ? loading ,
TResult ? Function ( List < OrderModel > orders ) ? loaded ,
} ) {
return loaded ? . call ( orders ) ;
}
@ override
@ optionalTypeArgs
TResult maybeWhen < TResult extends Object ? > ( {
TResult Function ( ) ? initial ,
TResult Function ( ) ? loading ,
TResult Function ( List < OrderModel > orders ) ? loaded ,
required TResult orElse ( ) ,
} ) {
if ( loaded ! = null ) {
return loaded ( orders ) ;
}
return orElse ( ) ;
}
@ override
@ optionalTypeArgs
TResult map < TResult extends Object ? > ( {
required TResult Function ( _Initial value ) initial ,
required TResult Function ( _Loading value ) loading ,
required TResult Function ( _Loaded value ) loaded ,
} ) {
return loaded ( this ) ;
}
@ override
@ optionalTypeArgs
TResult ? mapOrNull < TResult extends Object ? > ( {
TResult ? Function ( _Initial value ) ? initial ,
TResult ? Function ( _Loading value ) ? loading ,
TResult ? Function ( _Loaded value ) ? loaded ,
} ) {
return loaded ? . call ( this ) ;
}
@ override
@ optionalTypeArgs
TResult maybeMap < TResult extends Object ? > ( {
TResult Function ( _Initial value ) ? initial ,
TResult Function ( _Loading value ) ? loading ,
TResult Function ( _Loaded value ) ? loaded ,
required TResult orElse ( ) ,
} ) {
if ( loaded ! = null ) {
return loaded ( this ) ;
}
return orElse ( ) ;
}
}
abstract class _Loaded implements DaySalesState {
const factory _Loaded ( final List < OrderModel > orders ) = _ $LoadedImpl ;
List < OrderModel > get orders ;
/// Create a copy of DaySalesState
/// with the given fields replaced by the non-null parameter values.
@ JsonKey ( includeFromJson: false , includeToJson: false )
_ $ $LoadedImplCopyWith < _ $LoadedImpl > get copyWith = >
throw _privateConstructorUsedError ;
}