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