feat: payment method analytic repo
This commit is contained in:
+43
-28
@@ -174,7 +174,7 @@ abstract class _Fetched implements ProductAnalyticLoaderEvent {
|
||||
/// @nodoc
|
||||
mixin _$ProductAnalyticLoaderState {
|
||||
ProductAnalytic get productAnalytic => throw _privateConstructorUsedError;
|
||||
dynamic get failureOptionProductAnalytic =>
|
||||
Option<AnalyticFailure> get failureOptionProductAnalytic =>
|
||||
throw _privateConstructorUsedError;
|
||||
bool get isFetching => throw _privateConstructorUsedError;
|
||||
|
||||
@@ -198,9 +198,11 @@ abstract class $ProductAnalyticLoaderStateCopyWith<$Res> {
|
||||
@useResult
|
||||
$Res call({
|
||||
ProductAnalytic productAnalytic,
|
||||
dynamic failureOptionProductAnalytic,
|
||||
Option<AnalyticFailure> failureOptionProductAnalytic,
|
||||
bool isFetching,
|
||||
});
|
||||
|
||||
$ProductAnalyticCopyWith<$Res> get productAnalytic;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -221,21 +223,20 @@ class _$ProductAnalyticLoaderStateCopyWithImpl<
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? productAnalytic = freezed,
|
||||
Object? failureOptionProductAnalytic = freezed,
|
||||
Object? productAnalytic = null,
|
||||
Object? failureOptionProductAnalytic = null,
|
||||
Object? isFetching = null,
|
||||
}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
productAnalytic: freezed == productAnalytic
|
||||
productAnalytic: null == productAnalytic
|
||||
? _value.productAnalytic
|
||||
: productAnalytic // ignore: cast_nullable_to_non_nullable
|
||||
as ProductAnalytic,
|
||||
failureOptionProductAnalytic:
|
||||
freezed == failureOptionProductAnalytic
|
||||
failureOptionProductAnalytic: null == failureOptionProductAnalytic
|
||||
? _value.failureOptionProductAnalytic
|
||||
: failureOptionProductAnalytic // ignore: cast_nullable_to_non_nullable
|
||||
as dynamic,
|
||||
as Option<AnalyticFailure>,
|
||||
isFetching: null == isFetching
|
||||
? _value.isFetching
|
||||
: isFetching // ignore: cast_nullable_to_non_nullable
|
||||
@@ -244,6 +245,16 @@ class _$ProductAnalyticLoaderStateCopyWithImpl<
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
|
||||
/// Create a copy of ProductAnalyticLoaderState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$ProductAnalyticCopyWith<$Res> get productAnalytic {
|
||||
return $ProductAnalyticCopyWith<$Res>(_value.productAnalytic, (value) {
|
||||
return _then(_value.copyWith(productAnalytic: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -257,9 +268,12 @@ abstract class _$$ProductAnalyticLoaderStateImplCopyWith<$Res>
|
||||
@useResult
|
||||
$Res call({
|
||||
ProductAnalytic productAnalytic,
|
||||
dynamic failureOptionProductAnalytic,
|
||||
Option<AnalyticFailure> failureOptionProductAnalytic,
|
||||
bool isFetching,
|
||||
});
|
||||
|
||||
@override
|
||||
$ProductAnalyticCopyWith<$Res> get productAnalytic;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -280,19 +294,20 @@ class __$$ProductAnalyticLoaderStateImplCopyWithImpl<$Res>
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? productAnalytic = freezed,
|
||||
Object? failureOptionProductAnalytic = freezed,
|
||||
Object? productAnalytic = null,
|
||||
Object? failureOptionProductAnalytic = null,
|
||||
Object? isFetching = null,
|
||||
}) {
|
||||
return _then(
|
||||
_$ProductAnalyticLoaderStateImpl(
|
||||
productAnalytic: freezed == productAnalytic
|
||||
productAnalytic: null == productAnalytic
|
||||
? _value.productAnalytic
|
||||
: productAnalytic // ignore: cast_nullable_to_non_nullable
|
||||
as ProductAnalytic,
|
||||
failureOptionProductAnalytic: freezed == failureOptionProductAnalytic
|
||||
? _value.failureOptionProductAnalytic!
|
||||
: failureOptionProductAnalytic,
|
||||
failureOptionProductAnalytic: null == failureOptionProductAnalytic
|
||||
? _value.failureOptionProductAnalytic
|
||||
: failureOptionProductAnalytic // ignore: cast_nullable_to_non_nullable
|
||||
as Option<AnalyticFailure>,
|
||||
isFetching: null == isFetching
|
||||
? _value.isFetching
|
||||
: isFetching // ignore: cast_nullable_to_non_nullable
|
||||
@@ -314,7 +329,7 @@ class _$ProductAnalyticLoaderStateImpl implements _ProductAnalyticLoaderState {
|
||||
@override
|
||||
final ProductAnalytic productAnalytic;
|
||||
@override
|
||||
final dynamic failureOptionProductAnalytic;
|
||||
final Option<AnalyticFailure> failureOptionProductAnalytic;
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isFetching;
|
||||
@@ -329,14 +344,14 @@ class _$ProductAnalyticLoaderStateImpl implements _ProductAnalyticLoaderState {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ProductAnalyticLoaderStateImpl &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other.productAnalytic,
|
||||
productAnalytic,
|
||||
) &&
|
||||
const DeepCollectionEquality().equals(
|
||||
other.failureOptionProductAnalytic,
|
||||
failureOptionProductAnalytic,
|
||||
) &&
|
||||
(identical(other.productAnalytic, productAnalytic) ||
|
||||
other.productAnalytic == productAnalytic) &&
|
||||
(identical(
|
||||
other.failureOptionProductAnalytic,
|
||||
failureOptionProductAnalytic,
|
||||
) ||
|
||||
other.failureOptionProductAnalytic ==
|
||||
failureOptionProductAnalytic) &&
|
||||
(identical(other.isFetching, isFetching) ||
|
||||
other.isFetching == isFetching));
|
||||
}
|
||||
@@ -344,8 +359,8 @@ class _$ProductAnalyticLoaderStateImpl implements _ProductAnalyticLoaderState {
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
const DeepCollectionEquality().hash(productAnalytic),
|
||||
const DeepCollectionEquality().hash(failureOptionProductAnalytic),
|
||||
productAnalytic,
|
||||
failureOptionProductAnalytic,
|
||||
isFetching,
|
||||
);
|
||||
|
||||
@@ -365,14 +380,14 @@ abstract class _ProductAnalyticLoaderState
|
||||
implements ProductAnalyticLoaderState {
|
||||
const factory _ProductAnalyticLoaderState({
|
||||
required final ProductAnalytic productAnalytic,
|
||||
required final dynamic failureOptionProductAnalytic,
|
||||
required final Option<AnalyticFailure> failureOptionProductAnalytic,
|
||||
final bool isFetching,
|
||||
}) = _$ProductAnalyticLoaderStateImpl;
|
||||
|
||||
@override
|
||||
ProductAnalytic get productAnalytic;
|
||||
@override
|
||||
dynamic get failureOptionProductAnalytic;
|
||||
Option<AnalyticFailure> get failureOptionProductAnalytic;
|
||||
@override
|
||||
bool get isFetching;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user