ProductPreferencesManager class

Manager of the product preferences: referential and app/user preferences.

Constructors

ProductPreferencesManager(ProductPreferencesSelection _productPreferencesSelection)

Properties

attributeGroups List<AttributeGroup>?
no setter
availableProductPreferences AvailableProductPreferences
no getter
hashCode int
The hash code for this object.
no setterinherited
importanceIds List<String>?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearImportances({bool notifyListeners = true}) Future<void>
Clears all the attributes: sets all of them to "not important".
getAttributeIdsWithImportance(String importanceId) List<String>
Returns all the attributes that match an importance.
getImportanceIdForAttributeId(String attributeId) String
getImportanceIndex(String importanceId) int?
getOrderedImportantAttributeIds() List<String>
Returns all important attributes, ordered by descending importance.
getPreferenceImportanceFromImportanceId(String importanceId) PreferenceImportance?
getReferenceAttribute(String attributeId) Attribute?
Returns the attribute from the localized referential.
isAttributeImportant(String attributeId) bool?
Returns whether an attribute is important as per the user preferences.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
setImportance(String attributeId, String importanceId, {bool notifyListeners = true}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited