updateCryptocurrencies static method
Implementation
static Future<void> updateCryptocurrencies(
List<Cryptocurrency> cryptoList) async {
if (cryptocurrencyBox.isNotEmpty) {
await cryptocurrencyBox.clear();
}
cryptocurrencyBox.addAll(cryptoList);
}