setIfAbsent<T> method
Implementation
bool setIfAbsent<T>(String key, T resource, {bool temp = true}) {
final target = temp ? _temporary : _permanent;
if (!target.containsKey(key)) {
target[key] = resource;
return true;
}
return false;
}