initialize static method

Future<void> initialize()

Implementation

static Future<void> initialize() async {
  if (!Hive.isAdapterRegistered(220)) {
    Hive.registerAdapter<HiveSignalKeyStoreModel>(
        HiveSignalKeyStoreModelAdapter());
  }
  if (!Hive.isAdapterRegistered(221)) {
    Hive.registerAdapter<HiveSignalProtocolAddress>(
        HiveSignalProtocolAddressAdapter());
  }
  if (!Hive.isAdapterRegistered(222)) {
    Hive.registerAdapter<HiveSenderKeyName>(HiveSenderKeyNameAdapter());
  }
}