putIfAbsent method

void putIfAbsent(
  1. String key,
  2. String value
)

only puts a key if it is absent. This will not change the value of key if already exists in properties

Implementation

void putIfAbsent(String key, String value) =>
    _props.putIfAbsent(key, () => value);