// 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 'order_bloc.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models'); /// @nodoc mixin _$OrderEvent { @optionalTypeArgs TResult when({ required TResult Function() started, required TResult Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType) order, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? started, TResult? Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType)? order, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function()? started, TResult Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType)? order, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_Started value) started, required TResult Function(_Order value) order, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Started value)? started, TResult? Function(_Order value)? order, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_Started value)? started, TResult Function(_Order value)? order, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $OrderEventCopyWith<$Res> { factory $OrderEventCopyWith( OrderEvent value, $Res Function(OrderEvent) then) = _$OrderEventCopyWithImpl<$Res, OrderEvent>; } /// @nodoc class _$OrderEventCopyWithImpl<$Res, $Val extends OrderEvent> implements $OrderEventCopyWith<$Res> { _$OrderEventCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of OrderEvent /// 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 _$OrderEventCopyWithImpl<$Res, _$StartedImpl> implements _$$StartedImplCopyWith<$Res> { __$$StartedImplCopyWithImpl( _$StartedImpl _value, $Res Function(_$StartedImpl) _then) : super(_value, _then); /// Create a copy of OrderEvent /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$StartedImpl implements _Started { const _$StartedImpl(); @override String toString() { return 'OrderEvent.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({ required TResult Function() started, required TResult Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType) order, }) { return started(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? started, TResult? Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType)? order, }) { return started?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? started, TResult Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType)? order, required TResult orElse(), }) { if (started != null) { return started(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Started value) started, required TResult Function(_Order value) order, }) { return started(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Started value)? started, TResult? Function(_Order value)? order, }) { return started?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Started value)? started, TResult Function(_Order value)? order, required TResult orElse(), }) { if (started != null) { return started(this); } return orElse(); } } abstract class _Started implements OrderEvent { const factory _Started() = _$StartedImpl; } /// @nodoc abstract class _$$OrderImplCopyWith<$Res> { factory _$$OrderImplCopyWith( _$OrderImpl value, $Res Function(_$OrderImpl) then) = __$$OrderImplCopyWithImpl<$Res>; @useResult $Res call( {List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType}); } /// @nodoc class __$$OrderImplCopyWithImpl<$Res> extends _$OrderEventCopyWithImpl<$Res, _$OrderImpl> implements _$$OrderImplCopyWith<$Res> { __$$OrderImplCopyWithImpl( _$OrderImpl _value, $Res Function(_$OrderImpl) _then) : super(_value, _then); /// Create a copy of OrderEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? items = null, Object? discount = null, Object? discountAmount = null, Object? tax = null, Object? serviceCharge = null, Object? paymentAmount = null, Object? customerName = null, Object? tableNumber = null, Object? status = null, Object? paymentStatus = null, Object? paymentMethod = null, Object? totalPriceFinal = null, Object? orderType = null, }) { return _then(_$OrderImpl( null == items ? _value._items : items // ignore: cast_nullable_to_non_nullable as List, null == discount ? _value.discount : discount // ignore: cast_nullable_to_non_nullable as int, null == discountAmount ? _value.discountAmount : discountAmount // ignore: cast_nullable_to_non_nullable as int, null == tax ? _value.tax : tax // ignore: cast_nullable_to_non_nullable as int, null == serviceCharge ? _value.serviceCharge : serviceCharge // ignore: cast_nullable_to_non_nullable as int, null == paymentAmount ? _value.paymentAmount : paymentAmount // ignore: cast_nullable_to_non_nullable as int, null == customerName ? _value.customerName : customerName // ignore: cast_nullable_to_non_nullable as String, null == tableNumber ? _value.tableNumber : tableNumber // ignore: cast_nullable_to_non_nullable as int, null == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as String, null == paymentStatus ? _value.paymentStatus : paymentStatus // ignore: cast_nullable_to_non_nullable as String, null == paymentMethod ? _value.paymentMethod : paymentMethod // ignore: cast_nullable_to_non_nullable as String, null == totalPriceFinal ? _value.totalPriceFinal : totalPriceFinal // ignore: cast_nullable_to_non_nullable as int, null == orderType ? _value.orderType : orderType // ignore: cast_nullable_to_non_nullable as OrderType, )); } } /// @nodoc class _$OrderImpl implements _Order { const _$OrderImpl( final List items, this.discount, this.discountAmount, this.tax, this.serviceCharge, this.paymentAmount, this.customerName, this.tableNumber, this.status, this.paymentStatus, this.paymentMethod, this.totalPriceFinal, this.orderType) : _items = items; final List _items; @override List get items { if (_items is EqualUnmodifiableListView) return _items; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_items); } @override final int discount; @override final int discountAmount; @override final int tax; @override final int serviceCharge; @override final int paymentAmount; @override final String customerName; @override final int tableNumber; @override final String status; @override final String paymentStatus; @override final String paymentMethod; @override final int totalPriceFinal; @override final OrderType orderType; @override String toString() { return 'OrderEvent.order(items: $items, discount: $discount, discountAmount: $discountAmount, tax: $tax, serviceCharge: $serviceCharge, paymentAmount: $paymentAmount, customerName: $customerName, tableNumber: $tableNumber, status: $status, paymentStatus: $paymentStatus, paymentMethod: $paymentMethod, totalPriceFinal: $totalPriceFinal, orderType: $orderType)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$OrderImpl && const DeepCollectionEquality().equals(other._items, _items) && (identical(other.discount, discount) || other.discount == discount) && (identical(other.discountAmount, discountAmount) || other.discountAmount == discountAmount) && (identical(other.tax, tax) || other.tax == tax) && (identical(other.serviceCharge, serviceCharge) || other.serviceCharge == serviceCharge) && (identical(other.paymentAmount, paymentAmount) || other.paymentAmount == paymentAmount) && (identical(other.customerName, customerName) || other.customerName == customerName) && (identical(other.tableNumber, tableNumber) || other.tableNumber == tableNumber) && (identical(other.status, status) || other.status == status) && (identical(other.paymentStatus, paymentStatus) || other.paymentStatus == paymentStatus) && (identical(other.paymentMethod, paymentMethod) || other.paymentMethod == paymentMethod) && (identical(other.totalPriceFinal, totalPriceFinal) || other.totalPriceFinal == totalPriceFinal) && (identical(other.orderType, orderType) || other.orderType == orderType)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_items), discount, discountAmount, tax, serviceCharge, paymentAmount, customerName, tableNumber, status, paymentStatus, paymentMethod, totalPriceFinal, orderType); /// Create a copy of OrderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$OrderImplCopyWith<_$OrderImpl> get copyWith => __$$OrderImplCopyWithImpl<_$OrderImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function() started, required TResult Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType) order, }) { return order( items, discount, discountAmount, tax, serviceCharge, paymentAmount, customerName, tableNumber, status, paymentStatus, paymentMethod, totalPriceFinal, orderType); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? started, TResult? Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType)? order, }) { return order?.call( items, discount, discountAmount, tax, serviceCharge, paymentAmount, customerName, tableNumber, status, paymentStatus, paymentMethod, totalPriceFinal, orderType); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? started, TResult Function( List items, int discount, int discountAmount, int tax, int serviceCharge, int paymentAmount, String customerName, int tableNumber, String status, String paymentStatus, String paymentMethod, int totalPriceFinal, OrderType orderType)? order, required TResult orElse(), }) { if (order != null) { return order( items, discount, discountAmount, tax, serviceCharge, paymentAmount, customerName, tableNumber, status, paymentStatus, paymentMethod, totalPriceFinal, orderType); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Started value) started, required TResult Function(_Order value) order, }) { return order(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Started value)? started, TResult? Function(_Order value)? order, }) { return order?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Started value)? started, TResult Function(_Order value)? order, required TResult orElse(), }) { if (order != null) { return order(this); } return orElse(); } } abstract class _Order implements OrderEvent { const factory _Order( final List items, final int discount, final int discountAmount, final int tax, final int serviceCharge, final int paymentAmount, final String customerName, final int tableNumber, final String status, final String paymentStatus, final String paymentMethod, final int totalPriceFinal, final OrderType orderType) = _$OrderImpl; List get items; int get discount; int get discountAmount; int get tax; int get serviceCharge; int get paymentAmount; String get customerName; int get tableNumber; String get status; String get paymentStatus; String get paymentMethod; int get totalPriceFinal; OrderType get orderType; /// Create a copy of OrderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) _$$OrderImplCopyWith<_$OrderImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$OrderState { @optionalTypeArgs TResult when({ required TResult Function() initial, required TResult Function() loading, required TResult Function(OrderModel orderModel, int orderId) loaded, required TResult Function(String message) error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? initial, TResult? Function()? loading, TResult? Function(OrderModel orderModel, int orderId)? loaded, TResult? Function(String message)? error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function()? loading, TResult Function(OrderModel orderModel, int orderId)? loaded, TResult Function(String message)? error, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_Initial value) initial, required TResult Function(_Loading value) loading, required TResult Function(_Loaded value) loaded, required TResult Function(_Error value) error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Initial value)? initial, TResult? Function(_Loading value)? loading, TResult? Function(_Loaded value)? loaded, TResult? Function(_Error value)? error, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_Initial value)? initial, TResult Function(_Loading value)? loading, TResult Function(_Loaded value)? loaded, TResult Function(_Error value)? error, required TResult orElse(), }) => throw _privateConstructorUsedError; } /// @nodoc abstract class $OrderStateCopyWith<$Res> { factory $OrderStateCopyWith( OrderState value, $Res Function(OrderState) then) = _$OrderStateCopyWithImpl<$Res, OrderState>; } /// @nodoc class _$OrderStateCopyWithImpl<$Res, $Val extends OrderState> implements $OrderStateCopyWith<$Res> { _$OrderStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of OrderState /// 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 _$OrderStateCopyWithImpl<$Res, _$InitialImpl> implements _$$InitialImplCopyWith<$Res> { __$$InitialImplCopyWithImpl( _$InitialImpl _value, $Res Function(_$InitialImpl) _then) : super(_value, _then); /// Create a copy of OrderState /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$InitialImpl implements _Initial { const _$InitialImpl(); @override String toString() { return 'OrderState.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({ required TResult Function() initial, required TResult Function() loading, required TResult Function(OrderModel orderModel, int orderId) loaded, required TResult Function(String message) error, }) { return initial(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? initial, TResult? Function()? loading, TResult? Function(OrderModel orderModel, int orderId)? loaded, TResult? Function(String message)? error, }) { return initial?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function()? loading, TResult Function(OrderModel orderModel, int orderId)? loaded, TResult Function(String message)? error, required TResult orElse(), }) { if (initial != null) { return initial(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Initial value) initial, required TResult Function(_Loading value) loading, required TResult Function(_Loaded value) loaded, required TResult Function(_Error value) error, }) { return initial(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Initial value)? initial, TResult? Function(_Loading value)? loading, TResult? Function(_Loaded value)? loaded, TResult? Function(_Error value)? error, }) { return initial?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Initial value)? initial, TResult Function(_Loading value)? loading, TResult Function(_Loaded value)? loaded, TResult Function(_Error value)? error, required TResult orElse(), }) { if (initial != null) { return initial(this); } return orElse(); } } abstract class _Initial implements OrderState { const factory _Initial() = _$InitialImpl; } /// @nodoc abstract class _$$LoadingImplCopyWith<$Res> { factory _$$LoadingImplCopyWith( _$LoadingImpl value, $Res Function(_$LoadingImpl) then) = __$$LoadingImplCopyWithImpl<$Res>; } /// @nodoc class __$$LoadingImplCopyWithImpl<$Res> extends _$OrderStateCopyWithImpl<$Res, _$LoadingImpl> implements _$$LoadingImplCopyWith<$Res> { __$$LoadingImplCopyWithImpl( _$LoadingImpl _value, $Res Function(_$LoadingImpl) _then) : super(_value, _then); /// Create a copy of OrderState /// with the given fields replaced by the non-null parameter values. } /// @nodoc class _$LoadingImpl implements _Loading { const _$LoadingImpl(); @override String toString() { return 'OrderState.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({ required TResult Function() initial, required TResult Function() loading, required TResult Function(OrderModel orderModel, int orderId) loaded, required TResult Function(String message) error, }) { return loading(); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? initial, TResult? Function()? loading, TResult? Function(OrderModel orderModel, int orderId)? loaded, TResult? Function(String message)? error, }) { return loading?.call(); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function()? loading, TResult Function(OrderModel orderModel, int orderId)? loaded, TResult Function(String message)? error, required TResult orElse(), }) { if (loading != null) { return loading(); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Initial value) initial, required TResult Function(_Loading value) loading, required TResult Function(_Loaded value) loaded, required TResult Function(_Error value) error, }) { return loading(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Initial value)? initial, TResult? Function(_Loading value)? loading, TResult? Function(_Loaded value)? loaded, TResult? Function(_Error value)? error, }) { return loading?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Initial value)? initial, TResult Function(_Loading value)? loading, TResult Function(_Loaded value)? loaded, TResult Function(_Error value)? error, required TResult orElse(), }) { if (loading != null) { return loading(this); } return orElse(); } } abstract class _Loading implements OrderState { const factory _Loading() = _$LoadingImpl; } /// @nodoc abstract class _$$LoadedImplCopyWith<$Res> { factory _$$LoadedImplCopyWith( _$LoadedImpl value, $Res Function(_$LoadedImpl) then) = __$$LoadedImplCopyWithImpl<$Res>; @useResult $Res call({OrderModel orderModel, int orderId}); } /// @nodoc class __$$LoadedImplCopyWithImpl<$Res> extends _$OrderStateCopyWithImpl<$Res, _$LoadedImpl> implements _$$LoadedImplCopyWith<$Res> { __$$LoadedImplCopyWithImpl( _$LoadedImpl _value, $Res Function(_$LoadedImpl) _then) : super(_value, _then); /// Create a copy of OrderState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? orderModel = null, Object? orderId = null, }) { return _then(_$LoadedImpl( null == orderModel ? _value.orderModel : orderModel // ignore: cast_nullable_to_non_nullable as OrderModel, null == orderId ? _value.orderId : orderId // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc class _$LoadedImpl implements _Loaded { const _$LoadedImpl(this.orderModel, this.orderId); @override final OrderModel orderModel; @override final int orderId; @override String toString() { return 'OrderState.loaded(orderModel: $orderModel, orderId: $orderId)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LoadedImpl && (identical(other.orderModel, orderModel) || other.orderModel == orderModel) && (identical(other.orderId, orderId) || other.orderId == orderId)); } @override int get hashCode => Object.hash(runtimeType, orderModel, orderId); /// Create a copy of OrderState /// 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({ required TResult Function() initial, required TResult Function() loading, required TResult Function(OrderModel orderModel, int orderId) loaded, required TResult Function(String message) error, }) { return loaded(orderModel, orderId); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? initial, TResult? Function()? loading, TResult? Function(OrderModel orderModel, int orderId)? loaded, TResult? Function(String message)? error, }) { return loaded?.call(orderModel, orderId); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function()? loading, TResult Function(OrderModel orderModel, int orderId)? loaded, TResult Function(String message)? error, required TResult orElse(), }) { if (loaded != null) { return loaded(orderModel, orderId); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Initial value) initial, required TResult Function(_Loading value) loading, required TResult Function(_Loaded value) loaded, required TResult Function(_Error value) error, }) { return loaded(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Initial value)? initial, TResult? Function(_Loading value)? loading, TResult? Function(_Loaded value)? loaded, TResult? Function(_Error value)? error, }) { return loaded?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Initial value)? initial, TResult Function(_Loading value)? loading, TResult Function(_Loaded value)? loaded, TResult Function(_Error value)? error, required TResult orElse(), }) { if (loaded != null) { return loaded(this); } return orElse(); } } abstract class _Loaded implements OrderState { const factory _Loaded(final OrderModel orderModel, final int orderId) = _$LoadedImpl; OrderModel get orderModel; int get orderId; /// Create a copy of OrderState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) _$$LoadedImplCopyWith<_$LoadedImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$ErrorImplCopyWith<$Res> { factory _$$ErrorImplCopyWith( _$ErrorImpl value, $Res Function(_$ErrorImpl) then) = __$$ErrorImplCopyWithImpl<$Res>; @useResult $Res call({String message}); } /// @nodoc class __$$ErrorImplCopyWithImpl<$Res> extends _$OrderStateCopyWithImpl<$Res, _$ErrorImpl> implements _$$ErrorImplCopyWith<$Res> { __$$ErrorImplCopyWithImpl( _$ErrorImpl _value, $Res Function(_$ErrorImpl) _then) : super(_value, _then); /// Create a copy of OrderState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? message = null, }) { return _then(_$ErrorImpl( null == message ? _value.message : message // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc class _$ErrorImpl implements _Error { const _$ErrorImpl(this.message); @override final String message; @override String toString() { return 'OrderState.error(message: $message)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ErrorImpl && (identical(other.message, message) || other.message == message)); } @override int get hashCode => Object.hash(runtimeType, message); /// Create a copy of OrderState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ErrorImplCopyWith<_$ErrorImpl> get copyWith => __$$ErrorImplCopyWithImpl<_$ErrorImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function() initial, required TResult Function() loading, required TResult Function(OrderModel orderModel, int orderId) loaded, required TResult Function(String message) error, }) { return error(message); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function()? initial, TResult? Function()? loading, TResult? Function(OrderModel orderModel, int orderId)? loaded, TResult? Function(String message)? error, }) { return error?.call(message); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function()? initial, TResult Function()? loading, TResult Function(OrderModel orderModel, int orderId)? loaded, TResult Function(String message)? error, required TResult orElse(), }) { if (error != null) { return error(message); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Initial value) initial, required TResult Function(_Loading value) loading, required TResult Function(_Loaded value) loaded, required TResult Function(_Error value) error, }) { return error(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Initial value)? initial, TResult? Function(_Loading value)? loading, TResult? Function(_Loaded value)? loaded, TResult? Function(_Error value)? error, }) { return error?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Initial value)? initial, TResult Function(_Loading value)? loading, TResult Function(_Loaded value)? loaded, TResult Function(_Error value)? error, required TResult orElse(), }) { if (error != null) { return error(this); } return orElse(); } } abstract class _Error implements OrderState { const factory _Error(final String message) = _$ErrorImpl; String get message; /// Create a copy of OrderState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) _$$ErrorImplCopyWith<_$ErrorImpl> get copyWith => throw _privateConstructorUsedError; }