activate method

  1. @override
Future<void> activate({
  1. required String topic,
})
override

Implementation

@override
Future<void> activate({required String topic}) async {
  _checkInitialized();
  final int expiry = ReownCoreUtils.calculateExpiry(
    ReownConstants.THIRTY_DAYS,
  );
  // print('Activating pairing with topic: $topic');

  onPairingActivate.broadcast(
    PairingActivateEvent(
      topic: topic,
      expiry: expiry,
    ),
  );

  await pairings.update(
    topic,
    expiry: expiry,
    active: true,
  );
  await core.expirer.set(topic, expiry);
}