loadCryptocurrencies static method

Future<List<Cryptocurrency>> loadCryptocurrencies()

Implementation

static Future<List<Cryptocurrency>> loadCryptocurrencies() async {
  await initialize();
  List<Cryptocurrency> cryptoList = [];
  for (final item in cryptocurrencyBox.values) {
    cryptoList.add(item);
  }
  return cryptoList;
}