getSessionId method

Future<int?> getSessionId()

Fetches the current sessionId, an identifier used by Amplitude to group together events tracked during the same session. @returns the sessionId.

Implementation

Future<int?> getSessionId() async {
  return await _channel.invokeMethod(
      'getSessionId', jsonEncode(_baseProperties()));
}