// 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 'print_struck_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 _$PrintStruckEvent { Order get order => throw _privateConstructorUsedError; @optionalTypeArgs TResult when({ required TResult Function(Order order) order, required TResult Function(Order order) receipt, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function(Order order)? order, TResult? Function(Order order)? receipt, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function(Order order)? order, TResult Function(Order order)? receipt, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_Order value) order, required TResult Function(_Receipt value) receipt, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Order value)? order, TResult? Function(_Receipt value)? receipt, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_Order value)? order, TResult Function(_Receipt value)? receipt, required TResult orElse(), }) => throw _privateConstructorUsedError; /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PrintStruckEventCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PrintStruckEventCopyWith<$Res> { factory $PrintStruckEventCopyWith( PrintStruckEvent value, $Res Function(PrintStruckEvent) then, ) = _$PrintStruckEventCopyWithImpl<$Res, PrintStruckEvent>; @useResult $Res call({Order order}); $OrderCopyWith<$Res> get order; } /// @nodoc class _$PrintStruckEventCopyWithImpl<$Res, $Val extends PrintStruckEvent> implements $PrintStruckEventCopyWith<$Res> { _$PrintStruckEventCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? order = null}) { return _then( _value.copyWith( order: null == order ? _value.order : order // ignore: cast_nullable_to_non_nullable as Order, ) as $Val, ); } /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $OrderCopyWith<$Res> get order { return $OrderCopyWith<$Res>(_value.order, (value) { return _then(_value.copyWith(order: value) as $Val); }); } } /// @nodoc abstract class _$$OrderImplCopyWith<$Res> implements $PrintStruckEventCopyWith<$Res> { factory _$$OrderImplCopyWith( _$OrderImpl value, $Res Function(_$OrderImpl) then, ) = __$$OrderImplCopyWithImpl<$Res>; @override @useResult $Res call({Order order}); @override $OrderCopyWith<$Res> get order; } /// @nodoc class __$$OrderImplCopyWithImpl<$Res> extends _$PrintStruckEventCopyWithImpl<$Res, _$OrderImpl> implements _$$OrderImplCopyWith<$Res> { __$$OrderImplCopyWithImpl( _$OrderImpl _value, $Res Function(_$OrderImpl) _then, ) : super(_value, _then); /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? order = null}) { return _then( _$OrderImpl( null == order ? _value.order : order // ignore: cast_nullable_to_non_nullable as Order, ), ); } } /// @nodoc class _$OrderImpl implements _Order { const _$OrderImpl(this.order); @override final Order order; @override String toString() { return 'PrintStruckEvent.order(order: $order)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$OrderImpl && (identical(other.order, order) || other.order == order)); } @override int get hashCode => Object.hash(runtimeType, order); /// Create a copy of PrintStruckEvent /// 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(Order order) order, required TResult Function(Order order) receipt, }) { return order(this.order); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(Order order)? order, TResult? Function(Order order)? receipt, }) { return order?.call(this.order); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(Order order)? order, TResult Function(Order order)? receipt, required TResult orElse(), }) { if (order != null) { return order(this.order); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Order value) order, required TResult Function(_Receipt value) receipt, }) { return order(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Order value)? order, TResult? Function(_Receipt value)? receipt, }) { return order?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Order value)? order, TResult Function(_Receipt value)? receipt, required TResult orElse(), }) { if (order != null) { return order(this); } return orElse(); } } abstract class _Order implements PrintStruckEvent { const factory _Order(final Order order) = _$OrderImpl; @override Order get order; /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$OrderImplCopyWith<_$OrderImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$ReceiptImplCopyWith<$Res> implements $PrintStruckEventCopyWith<$Res> { factory _$$ReceiptImplCopyWith( _$ReceiptImpl value, $Res Function(_$ReceiptImpl) then, ) = __$$ReceiptImplCopyWithImpl<$Res>; @override @useResult $Res call({Order order}); @override $OrderCopyWith<$Res> get order; } /// @nodoc class __$$ReceiptImplCopyWithImpl<$Res> extends _$PrintStruckEventCopyWithImpl<$Res, _$ReceiptImpl> implements _$$ReceiptImplCopyWith<$Res> { __$$ReceiptImplCopyWithImpl( _$ReceiptImpl _value, $Res Function(_$ReceiptImpl) _then, ) : super(_value, _then); /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? order = null}) { return _then( _$ReceiptImpl( null == order ? _value.order : order // ignore: cast_nullable_to_non_nullable as Order, ), ); } } /// @nodoc class _$ReceiptImpl implements _Receipt { const _$ReceiptImpl(this.order); @override final Order order; @override String toString() { return 'PrintStruckEvent.receipt(order: $order)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ReceiptImpl && (identical(other.order, order) || other.order == order)); } @override int get hashCode => Object.hash(runtimeType, order); /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ReceiptImplCopyWith<_$ReceiptImpl> get copyWith => __$$ReceiptImplCopyWithImpl<_$ReceiptImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function(Order order) order, required TResult Function(Order order) receipt, }) { return receipt(this.order); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(Order order)? order, TResult? Function(Order order)? receipt, }) { return receipt?.call(this.order); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(Order order)? order, TResult Function(Order order)? receipt, required TResult orElse(), }) { if (receipt != null) { return receipt(this.order); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_Order value) order, required TResult Function(_Receipt value) receipt, }) { return receipt(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_Order value)? order, TResult? Function(_Receipt value)? receipt, }) { return receipt?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_Order value)? order, TResult Function(_Receipt value)? receipt, required TResult orElse(), }) { if (receipt != null) { return receipt(this); } return orElse(); } } abstract class _Receipt implements PrintStruckEvent { const factory _Receipt(final Order order) = _$ReceiptImpl; @override Order get order; /// Create a copy of PrintStruckEvent /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ReceiptImplCopyWith<_$ReceiptImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$PrintStruckState { Option> get failureOrPrintStruck => throw _privateConstructorUsedError; bool get isPrinting => throw _privateConstructorUsedError; /// Create a copy of PrintStruckState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PrintStruckStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PrintStruckStateCopyWith<$Res> { factory $PrintStruckStateCopyWith( PrintStruckState value, $Res Function(PrintStruckState) then, ) = _$PrintStruckStateCopyWithImpl<$Res, PrintStruckState>; @useResult $Res call({ Option> failureOrPrintStruck, bool isPrinting, }); } /// @nodoc class _$PrintStruckStateCopyWithImpl<$Res, $Val extends PrintStruckState> implements $PrintStruckStateCopyWith<$Res> { _$PrintStruckStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PrintStruckState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? failureOrPrintStruck = null, Object? isPrinting = null}) { return _then( _value.copyWith( failureOrPrintStruck: null == failureOrPrintStruck ? _value.failureOrPrintStruck : failureOrPrintStruck // ignore: cast_nullable_to_non_nullable as Option>, isPrinting: null == isPrinting ? _value.isPrinting : isPrinting // ignore: cast_nullable_to_non_nullable as bool, ) as $Val, ); } } /// @nodoc abstract class _$$PrintStruckStateImplCopyWith<$Res> implements $PrintStruckStateCopyWith<$Res> { factory _$$PrintStruckStateImplCopyWith( _$PrintStruckStateImpl value, $Res Function(_$PrintStruckStateImpl) then, ) = __$$PrintStruckStateImplCopyWithImpl<$Res>; @override @useResult $Res call({ Option> failureOrPrintStruck, bool isPrinting, }); } /// @nodoc class __$$PrintStruckStateImplCopyWithImpl<$Res> extends _$PrintStruckStateCopyWithImpl<$Res, _$PrintStruckStateImpl> implements _$$PrintStruckStateImplCopyWith<$Res> { __$$PrintStruckStateImplCopyWithImpl( _$PrintStruckStateImpl _value, $Res Function(_$PrintStruckStateImpl) _then, ) : super(_value, _then); /// Create a copy of PrintStruckState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? failureOrPrintStruck = null, Object? isPrinting = null}) { return _then( _$PrintStruckStateImpl( failureOrPrintStruck: null == failureOrPrintStruck ? _value.failureOrPrintStruck : failureOrPrintStruck // ignore: cast_nullable_to_non_nullable as Option>, isPrinting: null == isPrinting ? _value.isPrinting : isPrinting // ignore: cast_nullable_to_non_nullable as bool, ), ); } } /// @nodoc class _$PrintStruckStateImpl implements _PrintStruckState { _$PrintStruckStateImpl({ required this.failureOrPrintStruck, this.isPrinting = false, }); @override final Option> failureOrPrintStruck; @override @JsonKey() final bool isPrinting; @override String toString() { return 'PrintStruckState(failureOrPrintStruck: $failureOrPrintStruck, isPrinting: $isPrinting)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PrintStruckStateImpl && (identical(other.failureOrPrintStruck, failureOrPrintStruck) || other.failureOrPrintStruck == failureOrPrintStruck) && (identical(other.isPrinting, isPrinting) || other.isPrinting == isPrinting)); } @override int get hashCode => Object.hash(runtimeType, failureOrPrintStruck, isPrinting); /// Create a copy of PrintStruckState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PrintStruckStateImplCopyWith<_$PrintStruckStateImpl> get copyWith => __$$PrintStruckStateImplCopyWithImpl<_$PrintStruckStateImpl>( this, _$identity, ); } abstract class _PrintStruckState implements PrintStruckState { factory _PrintStruckState({ required final Option> failureOrPrintStruck, final bool isPrinting, }) = _$PrintStruckStateImpl; @override Option> get failureOrPrintStruck; @override bool get isPrinting; /// Create a copy of PrintStruckState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PrintStruckStateImplCopyWith<_$PrintStruckStateImpl> get copyWith => throw _privateConstructorUsedError; }