// 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 'food_categories_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 _$FoodCategoriesState {
  bool get isLoading => throw _privateConstructorUsedError;
  bool get isMainLoading => throw _privateConstructorUsedError;
  List<CategoryModel> get categories => throw _privateConstructorUsedError;
  List<CategoryModel> get category => throw _privateConstructorUsedError;
  List<MainBrand> get brand => throw _privateConstructorUsedError;
  int get activeIndex => throw _privateConstructorUsedError;
  int get activeChildrenIndex => throw _privateConstructorUsedError;
  int get activeMainIndex => throw _privateConstructorUsedError;
  List<MainCategoryModel> get mainCategory =>
      throw _privateConstructorUsedError;
  int get activeBrandIndex => throw _privateConstructorUsedError;
  TextEditingController? get brandController =>
      throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $FoodCategoriesStateCopyWith<$Res> {
  factory $FoodCategoriesStateCopyWith(
          FoodCategoriesState value, $Res Function(FoodCategoriesState) then) =
      _$FoodCategoriesStateCopyWithImpl<$Res, FoodCategoriesState>;
  @useResult
  $Res call(
      {bool isLoading,
      bool isMainLoading,
      List<CategoryModel> categories,
      List<CategoryModel> category,
      List<MainBrand> brand,
      int activeIndex,
      int activeChildrenIndex,
      int activeMainIndex,
      List<MainCategoryModel> mainCategory,
      int activeBrandIndex,
      TextEditingController? brandController});
}

/// @nodoc
class _$FoodCategoriesStateCopyWithImpl<$Res, $Val extends FoodCategoriesState>
    implements $FoodCategoriesStateCopyWith<$Res> {
  _$FoodCategoriesStateCopyWithImpl(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? isMainLoading = null,
    Object? categories = null,
    Object? category = null,
    Object? brand = null,
    Object? activeIndex = null,
    Object? activeChildrenIndex = null,
    Object? activeMainIndex = null,
    Object? mainCategory = null,
    Object? activeBrandIndex = null,
    Object? brandController = freezed,
  }) {
    return _then(_value.copyWith(
      isLoading: null == isLoading
          ? _value.isLoading
          : isLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isMainLoading: null == isMainLoading
          ? _value.isMainLoading
          : isMainLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      categories: null == categories
          ? _value.categories
          : categories // ignore: cast_nullable_to_non_nullable
              as List<CategoryModel>,
      category: null == category
          ? _value.category
          : category // ignore: cast_nullable_to_non_nullable
              as List<CategoryModel>,
      brand: null == brand
          ? _value.brand
          : brand // ignore: cast_nullable_to_non_nullable
              as List<MainBrand>,
      activeIndex: null == activeIndex
          ? _value.activeIndex
          : activeIndex // ignore: cast_nullable_to_non_nullable
              as int,
      activeChildrenIndex: null == activeChildrenIndex
          ? _value.activeChildrenIndex
          : activeChildrenIndex // ignore: cast_nullable_to_non_nullable
              as int,
      activeMainIndex: null == activeMainIndex
          ? _value.activeMainIndex
          : activeMainIndex // ignore: cast_nullable_to_non_nullable
              as int,
      mainCategory: null == mainCategory
          ? _value.mainCategory
          : mainCategory // ignore: cast_nullable_to_non_nullable
              as List<MainCategoryModel>,
      activeBrandIndex: null == activeBrandIndex
          ? _value.activeBrandIndex
          : activeBrandIndex // ignore: cast_nullable_to_non_nullable
              as int,
      brandController: freezed == brandController
          ? _value.brandController
          : brandController // ignore: cast_nullable_to_non_nullable
              as TextEditingController?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$_FoodCategoriesStateCopyWith<$Res>
    implements $FoodCategoriesStateCopyWith<$Res> {
  factory _$$_FoodCategoriesStateCopyWith(_$_FoodCategoriesState value,
          $Res Function(_$_FoodCategoriesState) then) =
      __$$_FoodCategoriesStateCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {bool isLoading,
      bool isMainLoading,
      List<CategoryModel> categories,
      List<CategoryModel> category,
      List<MainBrand> brand,
      int activeIndex,
      int activeChildrenIndex,
      int activeMainIndex,
      List<MainCategoryModel> mainCategory,
      int activeBrandIndex,
      TextEditingController? brandController});
}

/// @nodoc
class __$$_FoodCategoriesStateCopyWithImpl<$Res>
    extends _$FoodCategoriesStateCopyWithImpl<$Res, _$_FoodCategoriesState>
    implements _$$_FoodCategoriesStateCopyWith<$Res> {
  __$$_FoodCategoriesStateCopyWithImpl(_$_FoodCategoriesState _value,
      $Res Function(_$_FoodCategoriesState) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? isLoading = null,
    Object? isMainLoading = null,
    Object? categories = null,
    Object? category = null,
    Object? brand = null,
    Object? activeIndex = null,
    Object? activeChildrenIndex = null,
    Object? activeMainIndex = null,
    Object? mainCategory = null,
    Object? activeBrandIndex = null,
    Object? brandController = freezed,
  }) {
    return _then(_$_FoodCategoriesState(
      isLoading: null == isLoading
          ? _value.isLoading
          : isLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isMainLoading: null == isMainLoading
          ? _value.isMainLoading
          : isMainLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      categories: null == categories
          ? _value._categories
          : categories // ignore: cast_nullable_to_non_nullable
              as List<CategoryModel>,
      category: null == category
          ? _value._category
          : category // ignore: cast_nullable_to_non_nullable
              as List<CategoryModel>,
      brand: null == brand
          ? _value._brand
          : brand // ignore: cast_nullable_to_non_nullable
              as List<MainBrand>,
      activeIndex: null == activeIndex
          ? _value.activeIndex
          : activeIndex // ignore: cast_nullable_to_non_nullable
              as int,
      activeChildrenIndex: null == activeChildrenIndex
          ? _value.activeChildrenIndex
          : activeChildrenIndex // ignore: cast_nullable_to_non_nullable
              as int,
      activeMainIndex: null == activeMainIndex
          ? _value.activeMainIndex
          : activeMainIndex // ignore: cast_nullable_to_non_nullable
              as int,
      mainCategory: null == mainCategory
          ? _value._mainCategory
          : mainCategory // ignore: cast_nullable_to_non_nullable
              as List<MainCategoryModel>,
      activeBrandIndex: null == activeBrandIndex
          ? _value.activeBrandIndex
          : activeBrandIndex // ignore: cast_nullable_to_non_nullable
              as int,
      brandController: freezed == brandController
          ? _value.brandController
          : brandController // ignore: cast_nullable_to_non_nullable
              as TextEditingController?,
    ));
  }
}

/// @nodoc

class _$_FoodCategoriesState extends _FoodCategoriesState {
  const _$_FoodCategoriesState(
      {this.isLoading = false,
      this.isMainLoading = false,
      final List<CategoryModel> categories = const [],
      final List<CategoryModel> category = const [],
      final List<MainBrand> brand = const [],
      this.activeIndex = 1,
      this.activeChildrenIndex = 1,
      this.activeMainIndex = 1,
      final List<MainCategoryModel> mainCategory = const [],
      this.activeBrandIndex = 1,
      this.brandController})
      : _categories = categories,
        _category = category,
        _brand = brand,
        _mainCategory = mainCategory,
        super._();

  @override
  @JsonKey()
  final bool isLoading;
  @override
  @JsonKey()
  final bool isMainLoading;
  final List<CategoryModel> _categories;
  @override
  @JsonKey()
  List<CategoryModel> get categories {
    if (_categories is EqualUnmodifiableListView) return _categories;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_categories);
  }

  final List<CategoryModel> _category;
  @override
  @JsonKey()
  List<CategoryModel> get category {
    if (_category is EqualUnmodifiableListView) return _category;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_category);
  }

  final List<MainBrand> _brand;
  @override
  @JsonKey()
  List<MainBrand> get brand {
    if (_brand is EqualUnmodifiableListView) return _brand;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_brand);
  }

  @override
  @JsonKey()
  final int activeIndex;
  @override
  @JsonKey()
  final int activeChildrenIndex;
  @override
  @JsonKey()
  final int activeMainIndex;
  final List<MainCategoryModel> _mainCategory;
  @override
  @JsonKey()
  List<MainCategoryModel> get mainCategory {
    if (_mainCategory is EqualUnmodifiableListView) return _mainCategory;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_mainCategory);
  }

  @override
  @JsonKey()
  final int activeBrandIndex;
  @override
  final TextEditingController? brandController;

  @override
  String toString() {
    return 'FoodCategoriesState(isLoading: $isLoading, isMainLoading: $isMainLoading, categories: $categories, category: $category, brand: $brand, activeIndex: $activeIndex, activeChildrenIndex: $activeChildrenIndex, activeMainIndex: $activeMainIndex, mainCategory: $mainCategory, activeBrandIndex: $activeBrandIndex, brandController: $brandController)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_FoodCategoriesState &&
            (identical(other.isLoading, isLoading) ||
                other.isLoading == isLoading) &&
            (identical(other.isMainLoading, isMainLoading) ||
                other.isMainLoading == isMainLoading) &&
            const DeepCollectionEquality()
                .equals(other._categories, _categories) &&
            const DeepCollectionEquality().equals(other._category, _category) &&
            const DeepCollectionEquality().equals(other._brand, _brand) &&
            (identical(other.activeIndex, activeIndex) ||
                other.activeIndex == activeIndex) &&
            (identical(other.activeChildrenIndex, activeChildrenIndex) ||
                other.activeChildrenIndex == activeChildrenIndex) &&
            (identical(other.activeMainIndex, activeMainIndex) ||
                other.activeMainIndex == activeMainIndex) &&
            const DeepCollectionEquality()
                .equals(other._mainCategory, _mainCategory) &&
            (identical(other.activeBrandIndex, activeBrandIndex) ||
                other.activeBrandIndex == activeBrandIndex) &&
            (identical(other.brandController, brandController) ||
                other.brandController == brandController));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType,
      isLoading,
      isMainLoading,
      const DeepCollectionEquality().hash(_categories),
      const DeepCollectionEquality().hash(_category),
      const DeepCollectionEquality().hash(_brand),
      activeIndex,
      activeChildrenIndex,
      activeMainIndex,
      const DeepCollectionEquality().hash(_mainCategory),
      activeBrandIndex,
      brandController);

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

abstract class _FoodCategoriesState extends FoodCategoriesState {
  const factory _FoodCategoriesState(
      {final bool isLoading,
      final bool isMainLoading,
      final List<CategoryModel> categories,
      final List<CategoryModel> category,
      final List<MainBrand> brand,
      final int activeIndex,
      final int activeChildrenIndex,
      final int activeMainIndex,
      final List<MainCategoryModel> mainCategory,
      final int activeBrandIndex,
      final TextEditingController? brandController}) = _$_FoodCategoriesState;
  const _FoodCategoriesState._() : super._();

  @override
  bool get isLoading;
  @override
  bool get isMainLoading;
  @override
  List<CategoryModel> get categories;
  @override
  List<CategoryModel> get category;
  @override
  List<MainBrand> get brand;
  @override
  int get activeIndex;
  @override
  int get activeChildrenIndex;
  @override
  int get activeMainIndex;
  @override
  List<MainCategoryModel> get mainCategory;
  @override
  int get activeBrandIndex;
  @override
  TextEditingController? get brandController;
  @override
  @JsonKey(ignore: true)
  _$$_FoodCategoriesStateCopyWith<_$_FoodCategoriesState> get copyWith =>
      throw _privateConstructorUsedError;
}
