setCorrelationId static method

Future<void> setCorrelationId(
  1. String id
)

@Deprecated backward compatibility wrapper for setUserId. Use setUserId unless really necessary.

Sets a correlation identifier for this session. This value can be looked up via web dashboard. For example, setting correlation to the value of the user-id after they logged in. Can be called only once per session. Subsequent calls will be ignored.

Implementation

static Future<void> setCorrelationId(String id) async {
  TestFairyBase.prepareTwoWayInvoke();
  await TestFairyBase.channel.invokeMethod<void>('setCorrelationId', id);
}