// 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 'printer_loader_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 _$PrinterLoaderEvent { String get code => throw _privateConstructorUsedError; @optionalTypeArgs TResult when({ required TResult Function(String code) getByCode, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String code)? getByCode, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeWhen({ TResult Function(String code)? getByCode, required TResult orElse(), }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult map({ required TResult Function(_GetByCode value) getByCode, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_GetByCode value)? getByCode, }) => throw _privateConstructorUsedError; @optionalTypeArgs TResult maybeMap({ TResult Function(_GetByCode value)? getByCode, required TResult orElse(), }) => throw _privateConstructorUsedError; /// Create a copy of PrinterLoaderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PrinterLoaderEventCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PrinterLoaderEventCopyWith<$Res> { factory $PrinterLoaderEventCopyWith( PrinterLoaderEvent value, $Res Function(PrinterLoaderEvent) then, ) = _$PrinterLoaderEventCopyWithImpl<$Res, PrinterLoaderEvent>; @useResult $Res call({String code}); } /// @nodoc class _$PrinterLoaderEventCopyWithImpl<$Res, $Val extends PrinterLoaderEvent> implements $PrinterLoaderEventCopyWith<$Res> { _$PrinterLoaderEventCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PrinterLoaderEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? code = null}) { return _then( _value.copyWith( code: null == code ? _value.code : code // ignore: cast_nullable_to_non_nullable as String, ) as $Val, ); } } /// @nodoc abstract class _$$GetByCodeImplCopyWith<$Res> implements $PrinterLoaderEventCopyWith<$Res> { factory _$$GetByCodeImplCopyWith( _$GetByCodeImpl value, $Res Function(_$GetByCodeImpl) then, ) = __$$GetByCodeImplCopyWithImpl<$Res>; @override @useResult $Res call({String code}); } /// @nodoc class __$$GetByCodeImplCopyWithImpl<$Res> extends _$PrinterLoaderEventCopyWithImpl<$Res, _$GetByCodeImpl> implements _$$GetByCodeImplCopyWith<$Res> { __$$GetByCodeImplCopyWithImpl( _$GetByCodeImpl _value, $Res Function(_$GetByCodeImpl) _then, ) : super(_value, _then); /// Create a copy of PrinterLoaderEvent /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? code = null}) { return _then( _$GetByCodeImpl( null == code ? _value.code : code // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc class _$GetByCodeImpl implements _GetByCode { const _$GetByCodeImpl(this.code); @override final String code; @override String toString() { return 'PrinterLoaderEvent.getByCode(code: $code)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$GetByCodeImpl && (identical(other.code, code) || other.code == code)); } @override int get hashCode => Object.hash(runtimeType, code); /// Create a copy of PrinterLoaderEvent /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$GetByCodeImplCopyWith<_$GetByCodeImpl> get copyWith => __$$GetByCodeImplCopyWithImpl<_$GetByCodeImpl>(this, _$identity); @override @optionalTypeArgs TResult when({ required TResult Function(String code) getByCode, }) { return getByCode(code); } @override @optionalTypeArgs TResult? whenOrNull({ TResult? Function(String code)? getByCode, }) { return getByCode?.call(code); } @override @optionalTypeArgs TResult maybeWhen({ TResult Function(String code)? getByCode, required TResult orElse(), }) { if (getByCode != null) { return getByCode(code); } return orElse(); } @override @optionalTypeArgs TResult map({ required TResult Function(_GetByCode value) getByCode, }) { return getByCode(this); } @override @optionalTypeArgs TResult? mapOrNull({ TResult? Function(_GetByCode value)? getByCode, }) { return getByCode?.call(this); } @override @optionalTypeArgs TResult maybeMap({ TResult Function(_GetByCode value)? getByCode, required TResult orElse(), }) { if (getByCode != null) { return getByCode(this); } return orElse(); } } abstract class _GetByCode implements PrinterLoaderEvent { const factory _GetByCode(final String code) = _$GetByCodeImpl; @override String get code; /// Create a copy of PrinterLoaderEvent /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$GetByCodeImplCopyWith<_$GetByCodeImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$PrinterLoaderState { Printer get printer => throw _privateConstructorUsedError; Option get failureOption => throw _privateConstructorUsedError; bool get isFetching => throw _privateConstructorUsedError; /// Create a copy of PrinterLoaderState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PrinterLoaderStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PrinterLoaderStateCopyWith<$Res> { factory $PrinterLoaderStateCopyWith( PrinterLoaderState value, $Res Function(PrinterLoaderState) then, ) = _$PrinterLoaderStateCopyWithImpl<$Res, PrinterLoaderState>; @useResult $Res call({ Printer printer, Option failureOption, bool isFetching, }); $PrinterCopyWith<$Res> get printer; } /// @nodoc class _$PrinterLoaderStateCopyWithImpl<$Res, $Val extends PrinterLoaderState> implements $PrinterLoaderStateCopyWith<$Res> { _$PrinterLoaderStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PrinterLoaderState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? printer = null, Object? failureOption = null, Object? isFetching = null, }) { return _then( _value.copyWith( printer: null == printer ? _value.printer : printer // ignore: cast_nullable_to_non_nullable as Printer, failureOption: null == failureOption ? _value.failureOption : failureOption // ignore: cast_nullable_to_non_nullable as Option, isFetching: null == isFetching ? _value.isFetching : isFetching // ignore: cast_nullable_to_non_nullable as bool, ) as $Val, ); } /// Create a copy of PrinterLoaderState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $PrinterCopyWith<$Res> get printer { return $PrinterCopyWith<$Res>(_value.printer, (value) { return _then(_value.copyWith(printer: value) as $Val); }); } } /// @nodoc abstract class _$$PrinterLoaderStateImplCopyWith<$Res> implements $PrinterLoaderStateCopyWith<$Res> { factory _$$PrinterLoaderStateImplCopyWith( _$PrinterLoaderStateImpl value, $Res Function(_$PrinterLoaderStateImpl) then, ) = __$$PrinterLoaderStateImplCopyWithImpl<$Res>; @override @useResult $Res call({ Printer printer, Option failureOption, bool isFetching, }); @override $PrinterCopyWith<$Res> get printer; } /// @nodoc class __$$PrinterLoaderStateImplCopyWithImpl<$Res> extends _$PrinterLoaderStateCopyWithImpl<$Res, _$PrinterLoaderStateImpl> implements _$$PrinterLoaderStateImplCopyWith<$Res> { __$$PrinterLoaderStateImplCopyWithImpl( _$PrinterLoaderStateImpl _value, $Res Function(_$PrinterLoaderStateImpl) _then, ) : super(_value, _then); /// Create a copy of PrinterLoaderState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? printer = null, Object? failureOption = null, Object? isFetching = null, }) { return _then( _$PrinterLoaderStateImpl( printer: null == printer ? _value.printer : printer // ignore: cast_nullable_to_non_nullable as Printer, failureOption: null == failureOption ? _value.failureOption : failureOption // ignore: cast_nullable_to_non_nullable as Option, isFetching: null == isFetching ? _value.isFetching : isFetching // ignore: cast_nullable_to_non_nullable as bool, ), ); } } /// @nodoc class _$PrinterLoaderStateImpl implements _PrinterLoaderState { _$PrinterLoaderStateImpl({ required this.printer, required this.failureOption, this.isFetching = false, }); @override final Printer printer; @override final Option failureOption; @override @JsonKey() final bool isFetching; @override String toString() { return 'PrinterLoaderState(printer: $printer, failureOption: $failureOption, isFetching: $isFetching)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PrinterLoaderStateImpl && (identical(other.printer, printer) || other.printer == printer) && (identical(other.failureOption, failureOption) || other.failureOption == failureOption) && (identical(other.isFetching, isFetching) || other.isFetching == isFetching)); } @override int get hashCode => Object.hash(runtimeType, printer, failureOption, isFetching); /// Create a copy of PrinterLoaderState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PrinterLoaderStateImplCopyWith<_$PrinterLoaderStateImpl> get copyWith => __$$PrinterLoaderStateImplCopyWithImpl<_$PrinterLoaderStateImpl>( this, _$identity, ); } abstract class _PrinterLoaderState implements PrinterLoaderState { factory _PrinterLoaderState({ required final Printer printer, required final Option failureOption, final bool isFetching, }) = _$PrinterLoaderStateImpl; @override Printer get printer; @override Option get failureOption; @override bool get isFetching; /// Create a copy of PrinterLoaderState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PrinterLoaderStateImplCopyWith<_$PrinterLoaderStateImpl> get copyWith => throw _privateConstructorUsedError; }