update method
Implementation
bool update(String id, String? value) {
if (value != null && value.isNotEmpty) {
for (final type in values.keys) {
if (id == getId(type, lang)) {
values[type] = value.trim();
return true;
}
}
}
return false;
}