add method

PropertiesBuilder add(
  1. String key,
  2. Object value
)

Implementation

PropertiesBuilder add(String key, Object value) {
  if (_isOverMaxPropertiesCount()) {
    return this;
  }

  if (!_isValidKey(key)) {
    return this;
  }

  Object? sanitizedValue = _sanitize(key, value);
  if (sanitizedValue != null) {
    _properties[key] = sanitizedValue;
  }

  return this;
}