putString method

void putString(
  1. String key,
  2. String? value
)

Saves the given value to the map for the given key. If the value is null, the previous mapping is removed (if any)

Implementation

void putString(String key, String? value) {
  if (value == null) {
    _internalMap.remove(key);
  } else {
    _internalMap[key] = value;
  }
}