getSessionId method

Future<String?> getSessionId()

Returns the session ID if a session is active.

Returns null when no session is active or the platform cannot provide a session ID.

Implementation

Future<String?> getSessionId() => _posthog.getSessionId();