copyWith method

FeaturedState copyWith({
  1. List<Brand>? couponBrandList,
  2. List<Brand>? filteredBrandList,
  3. bool? brandLoading,
  4. int? selectedCategoryIndex,
  5. String? selectedCategory,
  6. String? brandSearchText,
  7. bool? loadMore,
  8. bool? isDataAvailable,
  9. int? pageNumber,
  10. bool? loadPage,
})

Implementation

FeaturedState copyWith({
  List<Brand>? couponBrandList,
  List<Brand>? filteredBrandList,
  bool? brandLoading,
  int? selectedCategoryIndex,
  String? selectedCategory,
  String? brandSearchText,
  bool? loadMore,
  bool? isDataAvailable,
  int? pageNumber,
  bool? loadPage,
}) {
  return FeaturedState(
    couponBrandList:
    couponBrandList ?? this.couponBrandList,

    filteredBrandList:
    filteredBrandList ?? this.filteredBrandList,

    brandLoading:
    brandLoading ?? this.brandLoading,

    selectedCategoryIndex:
    selectedCategoryIndex ?? this.selectedCategoryIndex,

    selectedCategory:
    selectedCategory ?? this.selectedCategory,

    brandSearchText:
    brandSearchText ?? this.brandSearchText,

    loadMore:
    loadMore ?? this.loadMore,

    isDataAvailable:
    isDataAvailable ?? this.isDataAvailable,

    pageNumber:
    pageNumber ?? this.pageNumber,

    loadPage:
    loadPage ?? this.loadPage,
  );
}