getSessionId static method

Future<String?> getSessionId({
  1. required String tracker,
})

Returns the identifier (string UUIDv4) for the session.

The tracker namespace is required but ignored on Web where all trackers share the same session.

Implementation

static Future<String?> getSessionId({required String tracker}) async {
  return await _channel.invokeMethod('getSessionId', {'tracker': tracker});
}