initializeWithAmplitude static method

Future<ExperimentClient> initializeWithAmplitude(
  1. String apiKey,
  2. ExperimentConfig config
)

Creates an ExperimentClient that integrates with Amplitude Analytics.

The client automatically shares user identity and lifecycle events with the Amplitude Analytics SDK identified by apiKey.

Implementation

static Future<ExperimentClient> initializeWithAmplitude(
  String apiKey,
  ExperimentConfig config,
) {
  return ExperimentClientImpl.create(
    apiKey: apiKey,
    config: config,
    withAnalytics: true,
  );
}