ProductState enum
States of a Product. To be used in search API, with StatesTagsParameter.
Provides tags for ProductState and its status: completed or to-be-completed.
Constructors
- ProductState({required String completedTag, required String toBeCompletedTag})
-
Special case where we need the tag values as we cannot build them.
const
- ProductState.completed({required String tag})
-
Simple case where we can build the tag values, for 'completed'.
const
- ProductState.selected({required String tag})
-
Simple case where we can build the tag values, for 'selected'.
const
- ProductState.simple({required String tag, required String action})
-
Simple case where we can build the tag values.
const
Values
- CHECKED → const ProductState
-
const ProductState(completedTag: 'en:checked', toBeCompletedTag: 'en:to-be-checked')
- COMPLETED → const ProductState
-
const ProductState(completedTag: 'en:complete', toBeCompletedTag: 'en:to-be-completed')
- NUTRITION_FACTS_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:nutrition-facts')
- INGREDIENTS_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:ingredients')
- EXPIRATION_DATE_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:expiration-date')
- PACKAGING_CODE_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:packaging-code')
- CHARACTERISTICS_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:characteristics')
- ORIGINS_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:origins')
- CATEGORIES_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:categories')
- BRANDS_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:brands')
- PACKAGING_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:packaging')
- QUANTITY_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:quantity')
- PRODUCT_NAME_COMPLETED → const ProductState
-
const ProductState.completed(tag: 'en:product-name')
- PHOTOS_VALIDATED → const ProductState
-
const ProductState.simple(tag: 'en:photos', action: 'validated')
- PACKAGING_PHOTO_SELECTED → const ProductState
-
const ProductState.selected(tag: 'en:packaging-photo')
- NUTRITION_PHOTO_SELECTED → const ProductState
-
const ProductState.selected(tag: 'en:nutrition-photo')
- INGREDIENTS_PHOTO_SELECTED → const ProductState
-
const ProductState.selected(tag: 'en:ingredients-photo')
- FRONT_PHOTO_SELECTED → const ProductState
-
const ProductState.selected(tag: 'en:front-photo')
- PHOTOS_UPLOADED → const ProductState
-
const ProductState.simple(tag: 'en:photos', action: 'uploaded')
Properties
- completedTag → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toBeCompletedTag → 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
Constants
-
values
→ const List<
ProductState> - A constant List of the values in this enum, in order of their declaration.