update method

bool update(
  1. String id,
  2. String? value
)

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;
}