static String? normalizePlatform(String? platform) { if (platform == null) return null; platform = normalizeName(platform); return platform.isEmpty ? null : platform; }