fix nullable type

This commit is contained in:
Serhii 2022-12-04 20:06:17 +02:00
parent 292c4c396c
commit 7b95533cd3

View file

@ -139,8 +139,8 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> {
return acc; return acc;
}); });
static final Map<String?, CryptoCurrency> _nameCurrencyMap = static final Map<String, CryptoCurrency> _nameCurrencyMap =
all.fold<Map<String?, CryptoCurrency>>(<String?, CryptoCurrency>{}, (acc, item) { all.fold<Map<String, CryptoCurrency>>(<String, CryptoCurrency>{}, (acc, item) {
acc.addAll({item.name: item}); acc.addAll({item.name: item});
return acc; return acc;
}); });