ProductRequestMixin mixin
A mixin to build search requests for products based on category and vendor criteria.
This mixin provides methods to construct search queries that can fetch products by applying category and vendor filters. It also supports additional keyword-based filtering.
- Mixin Applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildMustQuery(
int categoryId, String? vendorId) → List< QueryClause> - Builds the required "must" query clauses for a product search.
-
buildShouldQuery(
String? query) → List< QueryClause> ? - Builds the optional "should" query clauses for keyword-based search.
-
getAllSubcategoryIds(
CategoryEntity? category) → List< int> - Recursively collects all subcategory IDs from the given category.
-
getProductsRequest(
{required int numberOfFetchedProducts, required int limit, CategoryEntity? category, String? vendorId, String? query}) → ZincSearchRequest - Constructs a ZincSearchRequest to fetch products filtered by categories and vendor.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited