// 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 'edit_food_details_state.dart';

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

T _$identity<T>(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#custom-getters-and-methods');

/// @nodoc
mixin _$EditFoodDetailsState {
  bool get isLoading => throw _privateConstructorUsedError;
  bool get active => throw _privateConstructorUsedError;
  int get activeBrandIndex => throw _privateConstructorUsedError;
  String get title => throw _privateConstructorUsedError;
  String? get price => throw _privateConstructorUsedError;
  String get description => throw _privateConstructorUsedError;
  String get minQty => throw _privateConstructorUsedError;
  String get maxQty => throw _privateConstructorUsedError;
  String get tax => throw _privateConstructorUsedError;
  int get quantity => throw _privateConstructorUsedError;
  String get qrCode => throw _privateConstructorUsedError;
  ProductModel? get product => throw _privateConstructorUsedError;
  List<MainBrand> get brands => throw _privateConstructorUsedError;
  String? get imageFilePath => throw _privateConstructorUsedError;
  TextEditingController? get brandController =>
      throw _privateConstructorUsedError;

  @JsonKey(ignore: true)
  $EditFoodDetailsStateCopyWith<EditFoodDetailsState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $EditFoodDetailsStateCopyWith<$Res> {
  factory $EditFoodDetailsStateCopyWith(EditFoodDetailsState value,
          $Res Function(EditFoodDetailsState) then) =
      _$EditFoodDetailsStateCopyWithImpl<$Res, EditFoodDetailsState>;
  @useResult
  $Res call(
      {bool isLoading,
      bool active,
      int activeBrandIndex,
      String title,
      String? price,
      String description,
      String minQty,
      String maxQty,
      String tax,
      int quantity,
      String qrCode,
      ProductModel? product,
      List<MainBrand> brands,
      String? imageFilePath,
      TextEditingController? brandController});
}

/// @nodoc
class _$EditFoodDetailsStateCopyWithImpl<$Res,
        $Val extends EditFoodDetailsState>
    implements $EditFoodDetailsStateCopyWith<$Res> {
  _$EditFoodDetailsStateCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? isLoading = null,
    Object? active = null,
    Object? activeBrandIndex = null,
    Object? title = null,
    Object? price = freezed,
    Object? description = null,
    Object? minQty = null,
    Object? maxQty = null,
    Object? tax = null,
    Object? quantity = null,
    Object? qrCode = null,
    Object? product = freezed,
    Object? brands = null,
    Object? imageFilePath = freezed,
    Object? brandController = freezed,
  }) {
    return _then(_value.copyWith(
      isLoading: null == isLoading
          ? _value.isLoading
          : isLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      active: null == active
          ? _value.active
          : active // ignore: cast_nullable_to_non_nullable
              as bool,
      activeBrandIndex: null == activeBrandIndex
          ? _value.activeBrandIndex
          : activeBrandIndex // ignore: cast_nullable_to_non_nullable
              as int,
      title: null == title
          ? _value.title
          : title // ignore: cast_nullable_to_non_nullable
              as String,
      price: freezed == price
          ? _value.price
          : price // ignore: cast_nullable_to_non_nullable
              as String?,
      description: null == description
          ? _value.description
          : description // ignore: cast_nullable_to_non_nullable
              as String,
      minQty: null == minQty
          ? _value.minQty
          : minQty // ignore: cast_nullable_to_non_nullable
              as String,
      maxQty: null == maxQty
          ? _value.maxQty
          : maxQty // ignore: cast_nullable_to_non_nullable
              as String,
      tax: null == tax
          ? _value.tax
          : tax // ignore: cast_nullable_to_non_nullable
              as String,
      quantity: null == quantity
          ? _value.quantity
          : quantity // ignore: cast_nullable_to_non_nullable
              as int,
      qrCode: null == qrCode
          ? _value.qrCode
          : qrCode // ignore: cast_nullable_to_non_nullable
              as String,
      product: freezed == product
          ? _value.product
          : product // ignore: cast_nullable_to_non_nullable
              as ProductModel?,
      brands: null == brands
          ? _value.brands
          : brands // ignore: cast_nullable_to_non_nullable
              as List<MainBrand>,
      imageFilePath: freezed == imageFilePath
          ? _value.imageFilePath
          : imageFilePath // ignore: cast_nullable_to_non_nullable
              as String?,
      brandController: freezed == brandController
          ? _value.brandController
          : brandController // ignore: cast_nullable_to_non_nullable
              as TextEditingController?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$_EditFoodDetailsStateCopyWith<$Res>
    implements $EditFoodDetailsStateCopyWith<$Res> {
  factory _$$_EditFoodDetailsStateCopyWith(_$_EditFoodDetailsState value,
          $Res Function(_$_EditFoodDetailsState) then) =
      __$$_EditFoodDetailsStateCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {bool isLoading,
      bool active,
      int activeBrandIndex,
      String title,
      String? price,
      String description,
      String minQty,
      String maxQty,
      String tax,
      int quantity,
      String qrCode,
      ProductModel? product,
      List<MainBrand> brands,
      String? imageFilePath,
      TextEditingController? brandController});
}

/// @nodoc
class __$$_EditFoodDetailsStateCopyWithImpl<$Res>
    extends _$EditFoodDetailsStateCopyWithImpl<$Res, _$_EditFoodDetailsState>
    implements _$$_EditFoodDetailsStateCopyWith<$Res> {
  __$$_EditFoodDetailsStateCopyWithImpl(_$_EditFoodDetailsState _value,
      $Res Function(_$_EditFoodDetailsState) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? isLoading = null,
    Object? active = null,
    Object? activeBrandIndex = null,
    Object? title = null,
    Object? price = freezed,
    Object? description = null,
    Object? minQty = null,
    Object? maxQty = null,
    Object? tax = null,
    Object? quantity = null,
    Object? qrCode = null,
    Object? product = freezed,
    Object? brands = null,
    Object? imageFilePath = freezed,
    Object? brandController = freezed,
  }) {
    return _then(_$_EditFoodDetailsState(
      isLoading: null == isLoading
          ? _value.isLoading
          : isLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      active: null == active
          ? _value.active
          : active // ignore: cast_nullable_to_non_nullable
              as bool,
      activeBrandIndex: null == activeBrandIndex
          ? _value.activeBrandIndex
          : activeBrandIndex // ignore: cast_nullable_to_non_nullable
              as int,
      title: null == title
          ? _value.title
          : title // ignore: cast_nullable_to_non_nullable
              as String,
      price: freezed == price
          ? _value.price
          : price // ignore: cast_nullable_to_non_nullable
              as String?,
      description: null == description
          ? _value.description
          : description // ignore: cast_nullable_to_non_nullable
              as String,
      minQty: null == minQty
          ? _value.minQty
          : minQty // ignore: cast_nullable_to_non_nullable
              as String,
      maxQty: null == maxQty
          ? _value.maxQty
          : maxQty // ignore: cast_nullable_to_non_nullable
              as String,
      tax: null == tax
          ? _value.tax
          : tax // ignore: cast_nullable_to_non_nullable
              as String,
      quantity: null == quantity
          ? _value.quantity
          : quantity // ignore: cast_nullable_to_non_nullable
              as int,
      qrCode: null == qrCode
          ? _value.qrCode
          : qrCode // ignore: cast_nullable_to_non_nullable
              as String,
      product: freezed == product
          ? _value.product
          : product // ignore: cast_nullable_to_non_nullable
              as ProductModel?,
      brands: null == brands
          ? _value._brands
          : brands // ignore: cast_nullable_to_non_nullable
              as List<MainBrand>,
      imageFilePath: freezed == imageFilePath
          ? _value.imageFilePath
          : imageFilePath // ignore: cast_nullable_to_non_nullable
              as String?,
      brandController: freezed == brandController
          ? _value.brandController
          : brandController // ignore: cast_nullable_to_non_nullable
              as TextEditingController?,
    ));
  }
}

/// @nodoc

class _$_EditFoodDetailsState extends _EditFoodDetailsState {
  const _$_EditFoodDetailsState(
      {this.isLoading = false,
      this.active = false,
      this.activeBrandIndex = 0,
      this.title = '',
      this.price,
      this.description = '',
      this.minQty = '',
      this.maxQty = '',
      this.tax = '',
      this.quantity = 0,
      this.qrCode = '',
      this.product,
      final List<MainBrand> brands = const [],
      this.imageFilePath,
      this.brandController})
      : _brands = brands,
        super._();

  @override
  @JsonKey()
  final bool isLoading;
  @override
  @JsonKey()
  final bool active;
  @override
  @JsonKey()
  final int activeBrandIndex;
  @override
  @JsonKey()
  final String title;
  @override
  final String? price;
  @override
  @JsonKey()
  final String description;
  @override
  @JsonKey()
  final String minQty;
  @override
  @JsonKey()
  final String maxQty;
  @override
  @JsonKey()
  final String tax;
  @override
  @JsonKey()
  final int quantity;
  @override
  @JsonKey()
  final String qrCode;
  @override
  final ProductModel? product;
  final List<MainBrand> _brands;
  @override
  @JsonKey()
  List<MainBrand> get brands {
    if (_brands is EqualUnmodifiableListView) return _brands;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_brands);
  }

  @override
  final String? imageFilePath;
  @override
  final TextEditingController? brandController;

  @override
  String toString() {
    return 'EditFoodDetailsState(isLoading: $isLoading, active: $active, activeBrandIndex: $activeBrandIndex, title: $title, price: $price, description: $description, minQty: $minQty, maxQty: $maxQty, tax: $tax, quantity: $quantity, qrCode: $qrCode, product: $product, brands: $brands, imageFilePath: $imageFilePath, brandController: $brandController)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_EditFoodDetailsState &&
            (identical(other.isLoading, isLoading) ||
                other.isLoading == isLoading) &&
            (identical(other.active, active) || other.active == active) &&
            (identical(other.activeBrandIndex, activeBrandIndex) ||
                other.activeBrandIndex == activeBrandIndex) &&
            (identical(other.title, title) || other.title == title) &&
            (identical(other.price, price) || other.price == price) &&
            (identical(other.description, description) ||
                other.description == description) &&
            (identical(other.minQty, minQty) || other.minQty == minQty) &&
            (identical(other.maxQty, maxQty) || other.maxQty == maxQty) &&
            (identical(other.tax, tax) || other.tax == tax) &&
            (identical(other.quantity, quantity) ||
                other.quantity == quantity) &&
            (identical(other.qrCode, qrCode) || other.qrCode == qrCode) &&
            (identical(other.product, product) || other.product == product) &&
            const DeepCollectionEquality().equals(other._brands, _brands) &&
            (identical(other.imageFilePath, imageFilePath) ||
                other.imageFilePath == imageFilePath) &&
            (identical(other.brandController, brandController) ||
                other.brandController == brandController));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType,
      isLoading,
      active,
      activeBrandIndex,
      title,
      price,
      description,
      minQty,
      maxQty,
      tax,
      quantity,
      qrCode,
      product,
      const DeepCollectionEquality().hash(_brands),
      imageFilePath,
      brandController);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_EditFoodDetailsStateCopyWith<_$_EditFoodDetailsState> get copyWith =>
      __$$_EditFoodDetailsStateCopyWithImpl<_$_EditFoodDetailsState>(
          this, _$identity);
}

abstract class _EditFoodDetailsState extends EditFoodDetailsState {
  const factory _EditFoodDetailsState(
      {final bool isLoading,
      final bool active,
      final int activeBrandIndex,
      final String title,
      final String? price,
      final String description,
      final String minQty,
      final String maxQty,
      final String tax,
      final int quantity,
      final String qrCode,
      final ProductModel? product,
      final List<MainBrand> brands,
      final String? imageFilePath,
      final TextEditingController? brandController}) = _$_EditFoodDetailsState;
  const _EditFoodDetailsState._() : super._();

  @override
  bool get isLoading;
  @override
  bool get active;
  @override
  int get activeBrandIndex;
  @override
  String get title;
  @override
  String? get price;
  @override
  String get description;
  @override
  String get minQty;
  @override
  String get maxQty;
  @override
  String get tax;
  @override
  int get quantity;
  @override
  String get qrCode;
  @override
  ProductModel? get product;
  @override
  List<MainBrand> get brands;
  @override
  String? get imageFilePath;
  @override
  TextEditingController? get brandController;
  @override
  @JsonKey(ignore: true)
  _$$_EditFoodDetailsStateCopyWith<_$_EditFoodDetailsState> get copyWith =>
      throw _privateConstructorUsedError;
}
