getAppSourceName static method
Returns the display name for a given AppInUse source.
Reads from the appSourceNames map in properties/config.
Falls back to the enum letter uppercased if not found.
Implementation
static String getAppSourceName(AppInUse appInUse) {
final names = appProperties['appSourceNames'];
if (names is Map) {
return names[appInUse.name]?.toString() ?? appInUse.name.toUpperCase();
}
return appInUse.name.toUpperCase();
}