|
|
|
@@ -19,27 +19,34 @@ final _privateConstructorUsedError = UnsupportedError(
|
|
|
|
|
mixin _$SalesLoaderEvent {
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(DateTime dateFrom, DateTime dateTo)
|
|
|
|
|
rangeDateChanged,
|
|
|
|
|
required TResult Function() fectched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
|
|
|
|
|
TResult? Function()? fectched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
|
|
|
|
|
TResult Function()? fectched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_RangeDateChanged value) rangeDateChanged,
|
|
|
|
|
required TResult Function(_Fectched value) fectched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_RangeDateChanged value)? rangeDateChanged,
|
|
|
|
|
TResult? Function(_Fectched value)? fectched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_RangeDateChanged value)? rangeDateChanged,
|
|
|
|
|
TResult Function(_Fectched value)? fectched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
@@ -67,6 +74,164 @@ class _$SalesLoaderEventCopyWithImpl<$Res, $Val extends SalesLoaderEvent>
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$FectchedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$FectchedImplCopyWith(
|
|
|
|
@@ -110,6 +275,8 @@ class _$FectchedImpl implements _Fectched {
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(DateTime dateFrom, DateTime dateTo)
|
|
|
|
|
rangeDateChanged,
|
|
|
|
|
required TResult Function() fectched,
|
|
|
|
|
}) {
|
|
|
|
|
return fectched();
|
|
|
|
@@ -118,6 +285,7 @@ class _$FectchedImpl implements _Fectched {
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
|
|
|
|
|
TResult? Function()? fectched,
|
|
|
|
|
}) {
|
|
|
|
|
return fectched?.call();
|
|
|
|
@@ -126,6 +294,7 @@ class _$FectchedImpl implements _Fectched {
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
|
|
|
|
|
TResult Function()? fectched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
@@ -138,6 +307,7 @@ class _$FectchedImpl implements _Fectched {
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_RangeDateChanged value) rangeDateChanged,
|
|
|
|
|
required TResult Function(_Fectched value) fectched,
|
|
|
|
|
}) {
|
|
|
|
|
return fectched(this);
|
|
|
|
@@ -146,6 +316,7 @@ class _$FectchedImpl implements _Fectched {
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_RangeDateChanged value)? rangeDateChanged,
|
|
|
|
|
TResult? Function(_Fectched value)? fectched,
|
|
|
|
|
}) {
|
|
|
|
|
return fectched?.call(this);
|
|
|
|
@@ -154,6 +325,7 @@ class _$FectchedImpl implements _Fectched {
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_RangeDateChanged value)? rangeDateChanged,
|
|
|
|
|
TResult Function(_Fectched value)? fectched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
@@ -174,6 +346,8 @@ mixin _$SalesLoaderState {
|
|
|
|
|
Option<AnalyticFailure> get failureOptionSales =>
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
bool get isFetching => throw _privateConstructorUsedError;
|
|
|
|
|
DateTime get dateFrom => throw _privateConstructorUsedError;
|
|
|
|
|
DateTime get dateTo => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of SalesLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
@@ -193,6 +367,8 @@ abstract class $SalesLoaderStateCopyWith<$Res> {
|
|
|
|
|
SalesAnalytic sales,
|
|
|
|
|
Option<AnalyticFailure> failureOptionSales,
|
|
|
|
|
bool isFetching,
|
|
|
|
|
DateTime dateFrom,
|
|
|
|
|
DateTime dateTo,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$SalesAnalyticCopyWith<$Res> get sales;
|
|
|
|
@@ -216,6 +392,8 @@ class _$SalesLoaderStateCopyWithImpl<$Res, $Val extends SalesLoaderState>
|
|
|
|
|
Object? sales = null,
|
|
|
|
|
Object? failureOptionSales = null,
|
|
|
|
|
Object? isFetching = null,
|
|
|
|
|
Object? dateFrom = null,
|
|
|
|
|
Object? dateTo = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_value.copyWith(
|
|
|
|
@@ -231,6 +409,14 @@ class _$SalesLoaderStateCopyWithImpl<$Res, $Val extends SalesLoaderState>
|
|
|
|
|
? _value.isFetching
|
|
|
|
|
: isFetching // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
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,
|
|
|
|
|
)
|
|
|
|
|
as $Val,
|
|
|
|
|
);
|
|
|
|
@@ -260,6 +446,8 @@ abstract class _$$SalesLoaderStateImplCopyWith<$Res>
|
|
|
|
|
SalesAnalytic sales,
|
|
|
|
|
Option<AnalyticFailure> failureOptionSales,
|
|
|
|
|
bool isFetching,
|
|
|
|
|
DateTime dateFrom,
|
|
|
|
|
DateTime dateTo,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -283,6 +471,8 @@ class __$$SalesLoaderStateImplCopyWithImpl<$Res>
|
|
|
|
|
Object? sales = null,
|
|
|
|
|
Object? failureOptionSales = null,
|
|
|
|
|
Object? isFetching = null,
|
|
|
|
|
Object? dateFrom = null,
|
|
|
|
|
Object? dateTo = null,
|
|
|
|
|
}) {
|
|
|
|
|
return _then(
|
|
|
|
|
_$SalesLoaderStateImpl(
|
|
|
|
@@ -298,6 +488,14 @@ class __$$SalesLoaderStateImplCopyWithImpl<$Res>
|
|
|
|
|
? _value.isFetching
|
|
|
|
|
: isFetching // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
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,
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@@ -310,6 +508,8 @@ class _$SalesLoaderStateImpl implements _SalesLoaderState {
|
|
|
|
|
required this.sales,
|
|
|
|
|
required this.failureOptionSales,
|
|
|
|
|
this.isFetching = false,
|
|
|
|
|
required this.dateFrom,
|
|
|
|
|
required this.dateTo,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -319,10 +519,14 @@ class _$SalesLoaderStateImpl implements _SalesLoaderState {
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final bool isFetching;
|
|
|
|
|
@override
|
|
|
|
|
final DateTime dateFrom;
|
|
|
|
|
@override
|
|
|
|
|
final DateTime dateTo;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'SalesLoaderState(sales: $sales, failureOptionSales: $failureOptionSales, isFetching: $isFetching)';
|
|
|
|
|
return 'SalesLoaderState(sales: $sales, failureOptionSales: $failureOptionSales, isFetching: $isFetching, dateFrom: $dateFrom, dateTo: $dateTo)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -334,12 +538,21 @@ class _$SalesLoaderStateImpl implements _SalesLoaderState {
|
|
|
|
|
(identical(other.failureOptionSales, failureOptionSales) ||
|
|
|
|
|
other.failureOptionSales == failureOptionSales) &&
|
|
|
|
|
(identical(other.isFetching, isFetching) ||
|
|
|
|
|
other.isFetching == isFetching));
|
|
|
|
|
other.isFetching == isFetching) &&
|
|
|
|
|
(identical(other.dateFrom, dateFrom) ||
|
|
|
|
|
other.dateFrom == dateFrom) &&
|
|
|
|
|
(identical(other.dateTo, dateTo) || other.dateTo == dateTo));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode =>
|
|
|
|
|
Object.hash(runtimeType, sales, failureOptionSales, isFetching);
|
|
|
|
|
int get hashCode => Object.hash(
|
|
|
|
|
runtimeType,
|
|
|
|
|
sales,
|
|
|
|
|
failureOptionSales,
|
|
|
|
|
isFetching,
|
|
|
|
|
dateFrom,
|
|
|
|
|
dateTo,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of SalesLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
@@ -358,6 +571,8 @@ abstract class _SalesLoaderState implements SalesLoaderState {
|
|
|
|
|
required final SalesAnalytic sales,
|
|
|
|
|
required final Option<AnalyticFailure> failureOptionSales,
|
|
|
|
|
final bool isFetching,
|
|
|
|
|
required final DateTime dateFrom,
|
|
|
|
|
required final DateTime dateTo,
|
|
|
|
|
}) = _$SalesLoaderStateImpl;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -366,6 +581,10 @@ abstract class _SalesLoaderState implements SalesLoaderState {
|
|
|
|
|
Option<AnalyticFailure> get failureOptionSales;
|
|
|
|
|
@override
|
|
|
|
|
bool get isFetching;
|
|
|
|
|
@override
|
|
|
|
|
DateTime get dateFrom;
|
|
|
|
|
@override
|
|
|
|
|
DateTime get dateTo;
|
|
|
|
|
|
|
|
|
|
/// Create a copy of SalesLoaderState
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|