initialize static method

Future<void> initialize(
  1. HiveInterface hive
)

Use this to register models

Implementation

static Future<void> initialize(HiveInterface hive) 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());
  }
}