|
|
|
@@ -25,6 +25,7 @@ mixin _$OrderLoaderEvent {
|
|
|
|
|
required TResult Function(String search) searchChanged,
|
|
|
|
|
required TResult Function(String? outletId) outletChanged,
|
|
|
|
|
required TResult Function(bool isRefresh) fetched,
|
|
|
|
|
required TResult Function() summaryFetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
@@ -33,6 +34,7 @@ mixin _$OrderLoaderEvent {
|
|
|
|
|
TResult? Function(String search)? searchChanged,
|
|
|
|
|
TResult? Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult? Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult? Function()? summaryFetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
@@ -41,6 +43,7 @@ mixin _$OrderLoaderEvent {
|
|
|
|
|
TResult Function(String search)? searchChanged,
|
|
|
|
|
TResult Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult Function()? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
@@ -50,6 +53,7 @@ mixin _$OrderLoaderEvent {
|
|
|
|
|
required TResult Function(_SearchChanged value) searchChanged,
|
|
|
|
|
required TResult Function(_OutletChanged value) outletChanged,
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
required TResult Function(_SummaryFetched value) summaryFetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
@@ -58,6 +62,7 @@ mixin _$OrderLoaderEvent {
|
|
|
|
|
TResult? Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult? Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
TResult? Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
@@ -66,6 +71,7 @@ mixin _$OrderLoaderEvent {
|
|
|
|
|
TResult Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
TResult Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) => throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
@@ -179,6 +185,7 @@ class _$RangeDateChangedImpl implements _RangeDateChanged {
|
|
|
|
|
required TResult Function(String search) searchChanged,
|
|
|
|
|
required TResult Function(String? outletId) outletChanged,
|
|
|
|
|
required TResult Function(bool isRefresh) fetched,
|
|
|
|
|
required TResult Function() summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return rangeDateChanged(dateFrom, dateTo);
|
|
|
|
|
}
|
|
|
|
@@ -191,6 +198,7 @@ class _$RangeDateChangedImpl implements _RangeDateChanged {
|
|
|
|
|
TResult? Function(String search)? searchChanged,
|
|
|
|
|
TResult? Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult? Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult? Function()? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return rangeDateChanged?.call(dateFrom, dateTo);
|
|
|
|
|
}
|
|
|
|
@@ -203,6 +211,7 @@ class _$RangeDateChangedImpl implements _RangeDateChanged {
|
|
|
|
|
TResult Function(String search)? searchChanged,
|
|
|
|
|
TResult Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult Function()? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (rangeDateChanged != null) {
|
|
|
|
@@ -219,6 +228,7 @@ class _$RangeDateChangedImpl implements _RangeDateChanged {
|
|
|
|
|
required TResult Function(_SearchChanged value) searchChanged,
|
|
|
|
|
required TResult Function(_OutletChanged value) outletChanged,
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
required TResult Function(_SummaryFetched value) summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return rangeDateChanged(this);
|
|
|
|
|
}
|
|
|
|
@@ -231,6 +241,7 @@ class _$RangeDateChangedImpl implements _RangeDateChanged {
|
|
|
|
|
TResult? Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult? Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
TResult? Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return rangeDateChanged?.call(this);
|
|
|
|
|
}
|
|
|
|
@@ -243,6 +254,7 @@ class _$RangeDateChangedImpl implements _RangeDateChanged {
|
|
|
|
|
TResult Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
TResult Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (rangeDateChanged != null) {
|
|
|
|
@@ -344,6 +356,7 @@ class _$StatusChangedImpl implements _StatusChanged {
|
|
|
|
|
required TResult Function(String search) searchChanged,
|
|
|
|
|
required TResult Function(String? outletId) outletChanged,
|
|
|
|
|
required TResult Function(bool isRefresh) fetched,
|
|
|
|
|
required TResult Function() summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return statusChanged(status);
|
|
|
|
|
}
|
|
|
|
@@ -356,6 +369,7 @@ class _$StatusChangedImpl implements _StatusChanged {
|
|
|
|
|
TResult? Function(String search)? searchChanged,
|
|
|
|
|
TResult? Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult? Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult? Function()? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return statusChanged?.call(status);
|
|
|
|
|
}
|
|
|
|
@@ -368,6 +382,7 @@ class _$StatusChangedImpl implements _StatusChanged {
|
|
|
|
|
TResult Function(String search)? searchChanged,
|
|
|
|
|
TResult Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult Function()? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (statusChanged != null) {
|
|
|
|
@@ -384,6 +399,7 @@ class _$StatusChangedImpl implements _StatusChanged {
|
|
|
|
|
required TResult Function(_SearchChanged value) searchChanged,
|
|
|
|
|
required TResult Function(_OutletChanged value) outletChanged,
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
required TResult Function(_SummaryFetched value) summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return statusChanged(this);
|
|
|
|
|
}
|
|
|
|
@@ -396,6 +412,7 @@ class _$StatusChangedImpl implements _StatusChanged {
|
|
|
|
|
TResult? Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult? Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
TResult? Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return statusChanged?.call(this);
|
|
|
|
|
}
|
|
|
|
@@ -408,6 +425,7 @@ class _$StatusChangedImpl implements _StatusChanged {
|
|
|
|
|
TResult Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
TResult Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (statusChanged != null) {
|
|
|
|
@@ -505,6 +523,7 @@ class _$SearchChangedImpl implements _SearchChanged {
|
|
|
|
|
required TResult Function(String search) searchChanged,
|
|
|
|
|
required TResult Function(String? outletId) outletChanged,
|
|
|
|
|
required TResult Function(bool isRefresh) fetched,
|
|
|
|
|
required TResult Function() summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return searchChanged(search);
|
|
|
|
|
}
|
|
|
|
@@ -517,6 +536,7 @@ class _$SearchChangedImpl implements _SearchChanged {
|
|
|
|
|
TResult? Function(String search)? searchChanged,
|
|
|
|
|
TResult? Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult? Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult? Function()? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return searchChanged?.call(search);
|
|
|
|
|
}
|
|
|
|
@@ -529,6 +549,7 @@ class _$SearchChangedImpl implements _SearchChanged {
|
|
|
|
|
TResult Function(String search)? searchChanged,
|
|
|
|
|
TResult Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult Function()? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (searchChanged != null) {
|
|
|
|
@@ -545,6 +566,7 @@ class _$SearchChangedImpl implements _SearchChanged {
|
|
|
|
|
required TResult Function(_SearchChanged value) searchChanged,
|
|
|
|
|
required TResult Function(_OutletChanged value) outletChanged,
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
required TResult Function(_SummaryFetched value) summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return searchChanged(this);
|
|
|
|
|
}
|
|
|
|
@@ -557,6 +579,7 @@ class _$SearchChangedImpl implements _SearchChanged {
|
|
|
|
|
TResult? Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult? Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
TResult? Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return searchChanged?.call(this);
|
|
|
|
|
}
|
|
|
|
@@ -569,6 +592,7 @@ class _$SearchChangedImpl implements _SearchChanged {
|
|
|
|
|
TResult Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
TResult Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (searchChanged != null) {
|
|
|
|
@@ -667,6 +691,7 @@ class _$OutletChangedImpl implements _OutletChanged {
|
|
|
|
|
required TResult Function(String search) searchChanged,
|
|
|
|
|
required TResult Function(String? outletId) outletChanged,
|
|
|
|
|
required TResult Function(bool isRefresh) fetched,
|
|
|
|
|
required TResult Function() summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return outletChanged(outletId);
|
|
|
|
|
}
|
|
|
|
@@ -679,6 +704,7 @@ class _$OutletChangedImpl implements _OutletChanged {
|
|
|
|
|
TResult? Function(String search)? searchChanged,
|
|
|
|
|
TResult? Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult? Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult? Function()? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return outletChanged?.call(outletId);
|
|
|
|
|
}
|
|
|
|
@@ -691,6 +717,7 @@ class _$OutletChangedImpl implements _OutletChanged {
|
|
|
|
|
TResult Function(String search)? searchChanged,
|
|
|
|
|
TResult Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult Function()? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (outletChanged != null) {
|
|
|
|
@@ -707,6 +734,7 @@ class _$OutletChangedImpl implements _OutletChanged {
|
|
|
|
|
required TResult Function(_SearchChanged value) searchChanged,
|
|
|
|
|
required TResult Function(_OutletChanged value) outletChanged,
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
required TResult Function(_SummaryFetched value) summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return outletChanged(this);
|
|
|
|
|
}
|
|
|
|
@@ -719,6 +747,7 @@ class _$OutletChangedImpl implements _OutletChanged {
|
|
|
|
|
TResult? Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult? Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
TResult? Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return outletChanged?.call(this);
|
|
|
|
|
}
|
|
|
|
@@ -731,6 +760,7 @@ class _$OutletChangedImpl implements _OutletChanged {
|
|
|
|
|
TResult Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
TResult Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (outletChanged != null) {
|
|
|
|
@@ -830,6 +860,7 @@ class _$FetchedImpl implements _Fetched {
|
|
|
|
|
required TResult Function(String search) searchChanged,
|
|
|
|
|
required TResult Function(String? outletId) outletChanged,
|
|
|
|
|
required TResult Function(bool isRefresh) fetched,
|
|
|
|
|
required TResult Function() summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return fetched(isRefresh);
|
|
|
|
|
}
|
|
|
|
@@ -842,6 +873,7 @@ class _$FetchedImpl implements _Fetched {
|
|
|
|
|
TResult? Function(String search)? searchChanged,
|
|
|
|
|
TResult? Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult? Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult? Function()? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return fetched?.call(isRefresh);
|
|
|
|
|
}
|
|
|
|
@@ -854,6 +886,7 @@ class _$FetchedImpl implements _Fetched {
|
|
|
|
|
TResult Function(String search)? searchChanged,
|
|
|
|
|
TResult Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult Function()? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (fetched != null) {
|
|
|
|
@@ -870,6 +903,7 @@ class _$FetchedImpl implements _Fetched {
|
|
|
|
|
required TResult Function(_SearchChanged value) searchChanged,
|
|
|
|
|
required TResult Function(_OutletChanged value) outletChanged,
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
required TResult Function(_SummaryFetched value) summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return fetched(this);
|
|
|
|
|
}
|
|
|
|
@@ -882,6 +916,7 @@ class _$FetchedImpl implements _Fetched {
|
|
|
|
|
TResult? Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult? Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
TResult? Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return fetched?.call(this);
|
|
|
|
|
}
|
|
|
|
@@ -894,6 +929,7 @@ class _$FetchedImpl implements _Fetched {
|
|
|
|
|
TResult Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
TResult Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (fetched != null) {
|
|
|
|
@@ -915,6 +951,138 @@ abstract class _Fetched implements OrderLoaderEvent {
|
|
|
|
|
throw _privateConstructorUsedError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
abstract class _$$SummaryFetchedImplCopyWith<$Res> {
|
|
|
|
|
factory _$$SummaryFetchedImplCopyWith(
|
|
|
|
|
_$SummaryFetchedImpl value,
|
|
|
|
|
$Res Function(_$SummaryFetchedImpl) then,
|
|
|
|
|
) = __$$SummaryFetchedImplCopyWithImpl<$Res>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
class __$$SummaryFetchedImplCopyWithImpl<$Res>
|
|
|
|
|
extends _$OrderLoaderEventCopyWithImpl<$Res, _$SummaryFetchedImpl>
|
|
|
|
|
implements _$$SummaryFetchedImplCopyWith<$Res> {
|
|
|
|
|
__$$SummaryFetchedImplCopyWithImpl(
|
|
|
|
|
_$SummaryFetchedImpl _value,
|
|
|
|
|
$Res Function(_$SummaryFetchedImpl) _then,
|
|
|
|
|
) : super(_value, _then);
|
|
|
|
|
|
|
|
|
|
/// Create a copy of OrderLoaderEvent
|
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
|
|
|
|
|
class _$SummaryFetchedImpl implements _SummaryFetched {
|
|
|
|
|
const _$SummaryFetchedImpl();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'OrderLoaderEvent.summaryFetched()';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
|
return identical(this, other) ||
|
|
|
|
|
(other.runtimeType == runtimeType && other is _$SummaryFetchedImpl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult when<TResult extends Object?>({
|
|
|
|
|
required TResult Function(DateTime dateFrom, DateTime dateTo)
|
|
|
|
|
rangeDateChanged,
|
|
|
|
|
required TResult Function(String status) statusChanged,
|
|
|
|
|
required TResult Function(String search) searchChanged,
|
|
|
|
|
required TResult Function(String? outletId) outletChanged,
|
|
|
|
|
required TResult Function(bool isRefresh) fetched,
|
|
|
|
|
required TResult Function() summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return summaryFetched();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
|
|
|
|
|
TResult? Function(String status)? statusChanged,
|
|
|
|
|
TResult? Function(String search)? searchChanged,
|
|
|
|
|
TResult? Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult? Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult? Function()? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return summaryFetched?.call();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
|
|
|
TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
|
|
|
|
|
TResult Function(String status)? statusChanged,
|
|
|
|
|
TResult Function(String search)? searchChanged,
|
|
|
|
|
TResult Function(String? outletId)? outletChanged,
|
|
|
|
|
TResult Function(bool isRefresh)? fetched,
|
|
|
|
|
TResult Function()? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (summaryFetched != null) {
|
|
|
|
|
return summaryFetched();
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult map<TResult extends Object?>({
|
|
|
|
|
required TResult Function(_RangeDateChanged value) rangeDateChanged,
|
|
|
|
|
required TResult Function(_StatusChanged value) statusChanged,
|
|
|
|
|
required TResult Function(_SearchChanged value) searchChanged,
|
|
|
|
|
required TResult Function(_OutletChanged value) outletChanged,
|
|
|
|
|
required TResult Function(_Fetched value) fetched,
|
|
|
|
|
required TResult Function(_SummaryFetched value) summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return summaryFetched(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
|
|
|
TResult? Function(_RangeDateChanged value)? rangeDateChanged,
|
|
|
|
|
TResult? Function(_StatusChanged value)? statusChanged,
|
|
|
|
|
TResult? Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult? Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult? Function(_Fetched value)? fetched,
|
|
|
|
|
TResult? Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
}) {
|
|
|
|
|
return summaryFetched?.call(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@optionalTypeArgs
|
|
|
|
|
TResult maybeMap<TResult extends Object?>({
|
|
|
|
|
TResult Function(_RangeDateChanged value)? rangeDateChanged,
|
|
|
|
|
TResult Function(_StatusChanged value)? statusChanged,
|
|
|
|
|
TResult Function(_SearchChanged value)? searchChanged,
|
|
|
|
|
TResult Function(_OutletChanged value)? outletChanged,
|
|
|
|
|
TResult Function(_Fetched value)? fetched,
|
|
|
|
|
TResult Function(_SummaryFetched value)? summaryFetched,
|
|
|
|
|
required TResult orElse(),
|
|
|
|
|
}) {
|
|
|
|
|
if (summaryFetched != null) {
|
|
|
|
|
return summaryFetched(this);
|
|
|
|
|
}
|
|
|
|
|
return orElse();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _SummaryFetched implements OrderLoaderEvent {
|
|
|
|
|
const factory _SummaryFetched() = _$SummaryFetchedImpl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// @nodoc
|
|
|
|
|
mixin _$OrderLoaderState {
|
|
|
|
|
List<Order> get orders => throw _privateConstructorUsedError;
|
|
|
|
@@ -926,6 +1094,9 @@ mixin _$OrderLoaderState {
|
|
|
|
|
bool get isFetching => throw _privateConstructorUsedError;
|
|
|
|
|
bool get hasReachedMax => throw _privateConstructorUsedError;
|
|
|
|
|
int get page => throw _privateConstructorUsedError;
|
|
|
|
|
int get totalOrder => throw _privateConstructorUsedError;
|
|
|
|
|
int get totalPendingOrder => throw _privateConstructorUsedError;
|
|
|
|
|
bool get isFetchingSummary => throw _privateConstructorUsedError;
|
|
|
|
|
DateTime get dateFrom => throw _privateConstructorUsedError;
|
|
|
|
|
DateTime get dateTo => throw _privateConstructorUsedError;
|
|
|
|
|
|
|
|
|
@@ -952,6 +1123,9 @@ abstract class $OrderLoaderStateCopyWith<$Res> {
|
|
|
|
|
bool isFetching,
|
|
|
|
|
bool hasReachedMax,
|
|
|
|
|
int page,
|
|
|
|
|
int totalOrder,
|
|
|
|
|
int totalPendingOrder,
|
|
|
|
|
bool isFetchingSummary,
|
|
|
|
|
DateTime dateFrom,
|
|
|
|
|
DateTime dateTo,
|
|
|
|
|
});
|
|
|
|
@@ -980,6 +1154,9 @@ class _$OrderLoaderStateCopyWithImpl<$Res, $Val extends OrderLoaderState>
|
|
|
|
|
Object? isFetching = null,
|
|
|
|
|
Object? hasReachedMax = null,
|
|
|
|
|
Object? page = null,
|
|
|
|
|
Object? totalOrder = null,
|
|
|
|
|
Object? totalPendingOrder = null,
|
|
|
|
|
Object? isFetchingSummary = null,
|
|
|
|
|
Object? dateFrom = null,
|
|
|
|
|
Object? dateTo = null,
|
|
|
|
|
}) {
|
|
|
|
@@ -1017,6 +1194,18 @@ class _$OrderLoaderStateCopyWithImpl<$Res, $Val extends OrderLoaderState>
|
|
|
|
|
? _value.page
|
|
|
|
|
: page // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
totalOrder: null == totalOrder
|
|
|
|
|
? _value.totalOrder
|
|
|
|
|
: totalOrder // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
totalPendingOrder: null == totalPendingOrder
|
|
|
|
|
? _value.totalPendingOrder
|
|
|
|
|
: totalPendingOrder // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
isFetchingSummary: null == isFetchingSummary
|
|
|
|
|
? _value.isFetchingSummary
|
|
|
|
|
: isFetchingSummary // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
dateFrom: null == dateFrom
|
|
|
|
|
? _value.dateFrom
|
|
|
|
|
: dateFrom // ignore: cast_nullable_to_non_nullable
|
|
|
|
@@ -1049,6 +1238,9 @@ abstract class _$$OrderLoaderStateImplCopyWith<$Res>
|
|
|
|
|
bool isFetching,
|
|
|
|
|
bool hasReachedMax,
|
|
|
|
|
int page,
|
|
|
|
|
int totalOrder,
|
|
|
|
|
int totalPendingOrder,
|
|
|
|
|
bool isFetchingSummary,
|
|
|
|
|
DateTime dateFrom,
|
|
|
|
|
DateTime dateTo,
|
|
|
|
|
});
|
|
|
|
@@ -1076,6 +1268,9 @@ class __$$OrderLoaderStateImplCopyWithImpl<$Res>
|
|
|
|
|
Object? isFetching = null,
|
|
|
|
|
Object? hasReachedMax = null,
|
|
|
|
|
Object? page = null,
|
|
|
|
|
Object? totalOrder = null,
|
|
|
|
|
Object? totalPendingOrder = null,
|
|
|
|
|
Object? isFetchingSummary = null,
|
|
|
|
|
Object? dateFrom = null,
|
|
|
|
|
Object? dateTo = null,
|
|
|
|
|
}) {
|
|
|
|
@@ -1113,6 +1308,18 @@ class __$$OrderLoaderStateImplCopyWithImpl<$Res>
|
|
|
|
|
? _value.page
|
|
|
|
|
: page // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
totalOrder: null == totalOrder
|
|
|
|
|
? _value.totalOrder
|
|
|
|
|
: totalOrder // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
totalPendingOrder: null == totalPendingOrder
|
|
|
|
|
? _value.totalPendingOrder
|
|
|
|
|
: totalPendingOrder // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as int,
|
|
|
|
|
isFetchingSummary: null == isFetchingSummary
|
|
|
|
|
? _value.isFetchingSummary
|
|
|
|
|
: isFetchingSummary // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
as bool,
|
|
|
|
|
dateFrom: null == dateFrom
|
|
|
|
|
? _value.dateFrom
|
|
|
|
|
: dateFrom // ignore: cast_nullable_to_non_nullable
|
|
|
|
@@ -1138,6 +1345,9 @@ class _$OrderLoaderStateImpl implements _OrderLoaderState {
|
|
|
|
|
this.isFetching = false,
|
|
|
|
|
this.hasReachedMax = false,
|
|
|
|
|
this.page = 1,
|
|
|
|
|
this.totalOrder = 0,
|
|
|
|
|
this.totalPendingOrder = 0,
|
|
|
|
|
this.isFetchingSummary = false,
|
|
|
|
|
required this.dateFrom,
|
|
|
|
|
required this.dateTo,
|
|
|
|
|
}) : _orders = orders;
|
|
|
|
@@ -1168,13 +1378,22 @@ class _$OrderLoaderStateImpl implements _OrderLoaderState {
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final int page;
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final int totalOrder;
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final int totalPendingOrder;
|
|
|
|
|
@override
|
|
|
|
|
@JsonKey()
|
|
|
|
|
final bool isFetchingSummary;
|
|
|
|
|
@override
|
|
|
|
|
final DateTime dateFrom;
|
|
|
|
|
@override
|
|
|
|
|
final DateTime dateTo;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'OrderLoaderState(orders: $orders, failureOptionOrder: $failureOptionOrder, status: $status, search: $search, outletId: $outletId, isFetching: $isFetching, hasReachedMax: $hasReachedMax, page: $page, dateFrom: $dateFrom, dateTo: $dateTo)';
|
|
|
|
|
return 'OrderLoaderState(orders: $orders, failureOptionOrder: $failureOptionOrder, status: $status, search: $search, outletId: $outletId, isFetching: $isFetching, hasReachedMax: $hasReachedMax, page: $page, totalOrder: $totalOrder, totalPendingOrder: $totalPendingOrder, isFetchingSummary: $isFetchingSummary, dateFrom: $dateFrom, dateTo: $dateTo)';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@@ -1194,6 +1413,12 @@ class _$OrderLoaderStateImpl implements _OrderLoaderState {
|
|
|
|
|
(identical(other.hasReachedMax, hasReachedMax) ||
|
|
|
|
|
other.hasReachedMax == hasReachedMax) &&
|
|
|
|
|
(identical(other.page, page) || other.page == page) &&
|
|
|
|
|
(identical(other.totalOrder, totalOrder) ||
|
|
|
|
|
other.totalOrder == totalOrder) &&
|
|
|
|
|
(identical(other.totalPendingOrder, totalPendingOrder) ||
|
|
|
|
|
other.totalPendingOrder == totalPendingOrder) &&
|
|
|
|
|
(identical(other.isFetchingSummary, isFetchingSummary) ||
|
|
|
|
|
other.isFetchingSummary == isFetchingSummary) &&
|
|
|
|
|
(identical(other.dateFrom, dateFrom) ||
|
|
|
|
|
other.dateFrom == dateFrom) &&
|
|
|
|
|
(identical(other.dateTo, dateTo) || other.dateTo == dateTo));
|
|
|
|
@@ -1210,6 +1435,9 @@ class _$OrderLoaderStateImpl implements _OrderLoaderState {
|
|
|
|
|
isFetching,
|
|
|
|
|
hasReachedMax,
|
|
|
|
|
page,
|
|
|
|
|
totalOrder,
|
|
|
|
|
totalPendingOrder,
|
|
|
|
|
isFetchingSummary,
|
|
|
|
|
dateFrom,
|
|
|
|
|
dateTo,
|
|
|
|
|
);
|
|
|
|
@@ -1236,6 +1464,9 @@ abstract class _OrderLoaderState implements OrderLoaderState {
|
|
|
|
|
final bool isFetching,
|
|
|
|
|
final bool hasReachedMax,
|
|
|
|
|
final int page,
|
|
|
|
|
final int totalOrder,
|
|
|
|
|
final int totalPendingOrder,
|
|
|
|
|
final bool isFetchingSummary,
|
|
|
|
|
required final DateTime dateFrom,
|
|
|
|
|
required final DateTime dateTo,
|
|
|
|
|
}) = _$OrderLoaderStateImpl;
|
|
|
|
@@ -1257,6 +1488,12 @@ abstract class _OrderLoaderState implements OrderLoaderState {
|
|
|
|
|
@override
|
|
|
|
|
int get page;
|
|
|
|
|
@override
|
|
|
|
|
int get totalOrder;
|
|
|
|
|
@override
|
|
|
|
|
int get totalPendingOrder;
|
|
|
|
|
@override
|
|
|
|
|
bool get isFetchingSummary;
|
|
|
|
|
@override
|
|
|
|
|
DateTime get dateFrom;
|
|
|
|
|
@override
|
|
|
|
|
DateTime get dateTo;
|
|
|
|
|