ProductPreferences class

Inheritance
Mixed-in types
Available extensions

Constructors

ProductPreferences(ProductPreferencesSelection productPreferencesSelection, {DaoString? daoString})

Properties

attributeGroups → List<AttributeGroup>?
no setterinherited
availableProductPreferences ← AvailableProductPreferences
no getterinherited
daoString → DaoString?
final
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
importanceIds → List<String>?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearImportances({bool notifyListeners = true}) → Future<void>
Clears all the attributes: sets all of them to "not important".
inherited
dispose() → void
Discards any resources used by the object.
inherited
getAttributeGroup(String attributeId) → AttributeGroup
getAttributeIdsWithImportance(String importanceId) → List<String>
Returns all the attributes that match an importance.
inherited
getCompactView() → List<String>
Returns a compact view of the preferences.
getImportanceIdForAttributeId(String attributeId) → String
inherited
getImportanceIndex(String importanceId) → int?
inherited
getOrderedImportantAttributeIds() → List<String>
Returns all important attributes, ordered by descending importance.
inherited
getPreferenceImportanceFromImportanceId(String importanceId) → PreferenceImportance?
inherited
getReferenceAttribute(String attributeId) → Attribute?
Returns the attribute from the localized referential.
inherited
init(AssetBundle assetBundle) → Future<void>
Inits with the best available not-network references.
isAttributeImportant(String attributeId) → bool?
Returns whether an attribute is important as per the user preferences.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
inherited
notifyListeners() → void
Notifies listeners.
override
refresh() → Future<void>
Refreshes the references with network data.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replaceListener(VoidCallback listener) → void

Available on ChangeNotifier, provided by the ChangeNotifierExtensions extension

resetImportances() → Future<void>
setImportance(String attributeId, String importanceId, {bool notifyListeners = true}) → Future<void>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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