ProductQuery class

The common "product filter" shape every product-list widget (CAROUSEL, GRID, PRODUCTCARD, FLASHSALE, MIXEDCAROUSEL products page) converts its params into before asking the host app to fetch products.

Constructors

ProductQuery({dynamic categoryId, dynamic collectionId, dynamic brandId, dynamic groupId, String? search, String? searchFields, String? orderBy, int? limit, int? page, String? filterName, List? exceptProductIds, String? filter, String? link, bool? isFavoritedList, bool? isBundleProduct})
const
ProductQuery.fromParams(Map<String, dynamic> params)
Builds a ProductQuery from a widget's raw params, following the shared product-list contract (§1.4 of the widget catalog doc): a type + id pair resolves the same way as the tap contract, and its absence falls back to reading the direct filter fields.
factory

Properties

brandId → dynamic
final
categoryId → dynamic
final
collectionId → dynamic
final
exceptProductIds → List?
final
filter → String?
final
filterName → String?
final
groupId → dynamic
final
hashCode → int
The hash code for this object.
no setterinherited
isBundleProduct → bool?
final
isFavoritedList → bool?
final
limit → int?
final
final
orderBy → String?
Raw "field|DIRECTION" sort spec (e.g. "id|DESC"), kept unparsed so callers can forward it to their backend as-is.
final
page → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
final
searchFields → String?
final

Methods

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