amplitude_experiment library

Amplitude Experiment Flutter SDK.

Use Experiment.initialize or Experiment.initializeWithAmplitude to create an ExperimentClient, then call methods like ExperimentClient.fetch and ExperimentClient.variant to evaluate feature flags.

Classes

Experiment
Entry point for creating ExperimentClient instances.
ExperimentClient
Public interface for interacting with the Amplitude Experiment SDK.
ExperimentConfig
Configuration for the Amplitude Experiment SDK client.
ExperimentConfigDefaults
Default values for ExperimentConfig fields.
ExperimentUser
A user context for evaluating feature flags and experiments.
Exposure
Describes a user's exposure to a feature flag variant.
ExposureTrackingProvider
Receives exposure events when a user is exposed to a variant.
FetchOptions
Options for customizing a ExperimentClient.fetch request.
UserProvider
Provides the current user context for flag evaluation.
Variant
A feature flag variant containing the evaluated value and metadata.

Enums

LogLevel
Controls the verbosity of SDK logging output.
ServerZone
The Amplitude data center region.
Source
Determines where the SDK reads flag and variant data from.