Experiment class

Entry point for creating ExperimentClient instances.

Use initialize to create a standalone client, or initializeWithAmplitude to create a client that shares identity and lifecycle with an existing Amplitude Analytics instance.

final client = await Experiment.initialize('API_KEY', ExperimentConfig());

Constructors

Experiment()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

initialize(String apiKey, ExperimentConfig config) Future<ExperimentClient>
Creates an ExperimentClient configured with the given apiKey.
initializeWithAmplitude(String apiKey, ExperimentConfig config) Future<ExperimentClient>
Creates an ExperimentClient that integrates with Amplitude Analytics.