createIconsFromConfig function
Implementation
Future<void> createIconsFromConfig(Map<String, dynamic> config,
[String? flavor]) async {
if (!hasPlatformConfig(config)) {
throw const InvalidConfigException(errorMissingPlatform);
}
for (final AbstractPlatform platform in platforms.values) {
final String? complaint = platform.isConfigValid(config);
if (complaint != null) {
throw InvalidConfigException(complaint);
}
}
for (final AbstractPlatform platform in platforms.values) {
if (platform.inConfig(config) &&
platform.logWarnings(config, out: stderr)) {
platform.createIcons(config, flavor);
}
}
}