envAsStr function
origin: kt_ifm_gtid_mob/lib/global.dart union-of: stm_portal_mob/lib/global.dart author: anovsiradj, opencode-go/glm-5.2 version: 2025-03-03, revised: 2026-08-17
Safe env accessor. Returns alt if key missing.
Implementation
String envAsStr(String key, [String alt = '']) {
if (dotenv.env.containsKey(key)) {
return dotenv.env[key]!;
}
return alt;
}