hasPlatformConfig function
Checks if the config file contains a platform
Implementation
bool hasPlatformConfig(Map<String, dynamic> config) {
final isHasPlatforms = config.containsKey('platforms');
if (isHasPlatforms) {
final platforms = config['platforms'] as Map<String, dynamic>;
final isHasPlatformSpecific = isNeedingNewAndroidIcon(platforms) ||
isNeedingNewIosIcon(platforms) ||
isNeedingNewMacOSIcon(platforms) ||
isNeedingNewWindowsIcon(platforms) ||
isNeedingNewWebIcon(platforms) ||
isNeedingNewLinuxIcon(platforms);
return isHasPlatformSpecific;
}
return false;
}