getCompactView method
Returns a compact view of the preferences.
Useful if you want to know if the preferences actually changed.
Implementation
List<String> getCompactView() {
final List<String> result = <String>[];
if (attributeGroups == null) {
return result;
}
for (final AttributeGroup attributeGroup in attributeGroups!) {
if (attributeGroup.attributes == null) {
continue;
}
for (final Attribute attribute in attributeGroup.attributes!) {
final String? attributeId = attribute.id;
if (attributeId == null) {
continue;
}
final String importanceId = getImportanceIdForAttributeId(attributeId);
if (importanceId != PreferenceImportance.ID_NOT_IMPORTANT) {
result.add('$attributeId=$importanceId');
continue;
}
}
}
return result;
}