loadMap static method
Populates environment variables directly from a key-value map.
When overwrite is true (the default), existing keys are replaced.
When false, existing values are kept.
BloomEnv.loadMap({'APP_NAME': 'BloomApp', 'STAGE': 'staging'});
Implementation
static void loadMap(Map<String, String> map, {bool overwrite = true}) {
map.forEach((k, v) {
if (overwrite || !_env.containsKey(k)) {
_env[k] = v;
}
});
}