ProductPreferencesSelection class

Where the preferences regarding the importance of attributes are accessed

You are free to use whatever solution to set and get the importance of an attribute, and to notify listeners after refresh. E.g. SharedPreferences and provider. Some simple app may even use simple fix solution.

Constructors

ProductPreferencesSelection({required String getImportance(String attributeId), Future<void> setImportance(String attributeId, String importanceId)?, dynamic notify()?})

Properties

getImportance String Function(String attributeId)
Gets the importance of an attribute, e.g. from a SharedPreferences.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
setImportance(String attributeId, String importanceId) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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