getSessionsForPairing method

  1. @override
Map<String, SessionData> getSessionsForPairing({
  1. required String pairingTopic,
})
override

Implementation

@override
Map<String, SessionData> getSessionsForPairing({
  required String pairingTopic,
}) {
  _checkInitialized();

  Map<String, SessionData> pairingSessions = {};
  sessions
      .getAll()
      .where((session) => session.pairingTopic == pairingTopic)
      .forEach((session) {
    pairingSessions[session.topic] = session;
  });

  return pairingSessions;
}