buildFlagIconForCountry function
Implementation
Widget? buildFlagIconForCountry(
String key, {
Widget Function(String)? flagIconBuilder,
bool hasShadow = true,
double? height,
double? width,
}) {
final iconKey = toCamelCase(key);
final hasIcon = kFastImageFlagMap.containsKey(iconKey);
if (!hasIcon) {
debugLog('No flag icon found for country: $key');
return null;
}
return buildFlagIcon(
key,
kFastImageFlagMap,
flagIconBuilder: flagIconBuilder,
hasShadow: hasShadow,
height: height,
width: width,
);
}