initialize static method

Future<void> initialize()

Implementation

static Future<void> initialize() async {
  await Hive.initFlutter();
  Hive.registerAdapter(CryptocurrencyAdapter());
  cryptocurrencyBox = await Hive.openBox<Cryptocurrency>('cryptocurrencyBox');
}