VendorState constructor
const
VendorState({ - @Default(VendorStatus.initial) VendorStatus status,
- @Default(<ProductEntity>[]) List<ProductEntity> products,
- @Default(false) bool hasReachedMax,
- @Default(<Filter>[]) List<Filter> filters,
- @Default(0) int numberOfAppliedFilters,
- CategoryEntity? category,
- SortingType? selectedSorting,
- String? vendorId,
- String? query,
- String? errorMessage,
})
Implementation
const factory VendorState({
@Default(VendorStatus.initial) VendorStatus status,
@Default(<ProductEntity>[]) List<ProductEntity> products,
@Default(false) bool hasReachedMax,
@Default(<Filter>[]) List<Filter> filters,
@Default(0) int numberOfAppliedFilters,
CategoryEntity? category,
SortingType? selectedSorting,
String? vendorId,
String? query,
String? errorMessage,
}) = _VendorState;