getCryptoIcon static method

IconData? getCryptoIcon(
  1. String key, [
  2. String? mode
])

Returns the Icon for the correct Crypto, if the Icon doesn't exist it returns null

mode = 'normal' returns normal Icon, mode = 'alt' returns the alt Icon

Implementation

static IconData? getCryptoIcon(String key, [String? mode]) {
  if (containsCrypto(key)) {
    if (mode == 'alt') return _cryptoMap[key]![1];
    return _cryptoMap[key]![0];
  }
  return null;
}