VendorState constructor

const VendorState({
  1. @Default(VendorStatus.initial) VendorStatus status,
  2. @Default(<ProductEntity>[]) List<ProductEntity> products,
  3. @Default(false) bool hasReachedMax,
  4. @Default(<Filter>[]) List<Filter> filters,
  5. @Default(0) int numberOfAppliedFilters,
  6. CategoryEntity? category,
  7. SortingType? selectedSorting,
  8. String? vendorId,
  9. String? query,
  10. 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;