getSessionKey method Null safety

Future<String?> getSessionKey()

Get current sessionKey from prefs

Implementation

Future<String?> getSessionKey() async {
  if (_sessionKey != null) return _sessionKey;
  final decryptedKey = await _decryptedSessionKey();
  _sessionKey ??= decryptedKey;
  return decryptedKey;
}