copyWith method
FeaturedState
copyWith(
{ - List<Brand>? couponBrandList,
- List<Brand>? filteredBrandList,
- bool? brandLoading,
- int? selectedCategoryIndex,
- String? selectedCategory,
- String? brandSearchText,
- bool? loadMore,
- bool? isDataAvailable,
- int? pageNumber,
- 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,
);
}