// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// 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 'legacy_main_shell_view_state.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$LegacyMainShellViewState {

 int get selectedIndex; bool get isLoading; bool get isComplete; String? get error;
/// Create a copy of LegacyMainShellViewState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$LegacyMainShellViewStateCopyWith<LegacyMainShellViewState> get copyWith => _$LegacyMainShellViewStateCopyWithImpl<LegacyMainShellViewState>(this as LegacyMainShellViewState, _$identity);



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is LegacyMainShellViewState&&(identical(other.selectedIndex, selectedIndex) || other.selectedIndex == selectedIndex)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.error, error) || other.error == error));
}


@override
int get hashCode => Object.hash(runtimeType,selectedIndex,isLoading,isComplete,error);

@override
String toString() {
  return 'LegacyMainShellViewState(selectedIndex: $selectedIndex, isLoading: $isLoading, isComplete: $isComplete, error: $error)';
}


}

/// @nodoc
abstract mixin class $LegacyMainShellViewStateCopyWith<$Res>  {
  factory $LegacyMainShellViewStateCopyWith(LegacyMainShellViewState value, $Res Function(LegacyMainShellViewState) _then) = _$LegacyMainShellViewStateCopyWithImpl;
@useResult
$Res call({
 int selectedIndex, bool isLoading, bool isComplete, String? error
});




}
/// @nodoc
class _$LegacyMainShellViewStateCopyWithImpl<$Res>
    implements $LegacyMainShellViewStateCopyWith<$Res> {
  _$LegacyMainShellViewStateCopyWithImpl(this._self, this._then);

  final LegacyMainShellViewState _self;
  final $Res Function(LegacyMainShellViewState) _then;

/// Create a copy of LegacyMainShellViewState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? selectedIndex = null,Object? isLoading = null,Object? isComplete = null,Object? error = freezed,}) {
  return _then(_self.copyWith(
selectedIndex: null == selectedIndex ? _self.selectedIndex : selectedIndex // ignore: cast_nullable_to_non_nullable
as int,isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable
as bool,error: freezed == error ? _self.error : error // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [LegacyMainShellViewState].
extension LegacyMainShellViewStatePatterns on LegacyMainShellViewState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LegacyMainShellViewState value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LegacyMainShellViewState() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _LegacyMainShellViewState value)  $default,){
final _that = this;
switch (_that) {
case _LegacyMainShellViewState():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _LegacyMainShellViewState value)?  $default,){
final _that = this;
switch (_that) {
case _LegacyMainShellViewState() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( int selectedIndex,  bool isLoading,  bool isComplete,  String? error)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LegacyMainShellViewState() when $default != null:
return $default(_that.selectedIndex,_that.isLoading,_that.isComplete,_that.error);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( int selectedIndex,  bool isLoading,  bool isComplete,  String? error)  $default,) {final _that = this;
switch (_that) {
case _LegacyMainShellViewState():
return $default(_that.selectedIndex,_that.isLoading,_that.isComplete,_that.error);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( int selectedIndex,  bool isLoading,  bool isComplete,  String? error)?  $default,) {final _that = this;
switch (_that) {
case _LegacyMainShellViewState() when $default != null:
return $default(_that.selectedIndex,_that.isLoading,_that.isComplete,_that.error);case _:
  return null;

}
}

}

/// @nodoc


class _LegacyMainShellViewState implements LegacyMainShellViewState {
  const _LegacyMainShellViewState({this.selectedIndex = 0, this.isLoading = false, this.isComplete = false, this.error});
  

@override@JsonKey() final  int selectedIndex;
@override@JsonKey() final  bool isLoading;
@override@JsonKey() final  bool isComplete;
@override final  String? error;

/// Create a copy of LegacyMainShellViewState
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$LegacyMainShellViewStateCopyWith<_LegacyMainShellViewState> get copyWith => __$LegacyMainShellViewStateCopyWithImpl<_LegacyMainShellViewState>(this, _$identity);



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _LegacyMainShellViewState&&(identical(other.selectedIndex, selectedIndex) || other.selectedIndex == selectedIndex)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.error, error) || other.error == error));
}


@override
int get hashCode => Object.hash(runtimeType,selectedIndex,isLoading,isComplete,error);

@override
String toString() {
  return 'LegacyMainShellViewState(selectedIndex: $selectedIndex, isLoading: $isLoading, isComplete: $isComplete, error: $error)';
}


}

/// @nodoc
abstract mixin class _$LegacyMainShellViewStateCopyWith<$Res> implements $LegacyMainShellViewStateCopyWith<$Res> {
  factory _$LegacyMainShellViewStateCopyWith(_LegacyMainShellViewState value, $Res Function(_LegacyMainShellViewState) _then) = __$LegacyMainShellViewStateCopyWithImpl;
@override @useResult
$Res call({
 int selectedIndex, bool isLoading, bool isComplete, String? error
});




}
/// @nodoc
class __$LegacyMainShellViewStateCopyWithImpl<$Res>
    implements _$LegacyMainShellViewStateCopyWith<$Res> {
  __$LegacyMainShellViewStateCopyWithImpl(this._self, this._then);

  final _LegacyMainShellViewState _self;
  final $Res Function(_LegacyMainShellViewState) _then;

/// Create a copy of LegacyMainShellViewState
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? selectedIndex = null,Object? isLoading = null,Object? isComplete = null,Object? error = freezed,}) {
  return _then(_LegacyMainShellViewState(
selectedIndex: null == selectedIndex ? _self.selectedIndex : selectedIndex // ignore: cast_nullable_to_non_nullable
as int,isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable
as bool,error: freezed == error ? _self.error : error // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}

// dart format on
