AdaptedExperiment<T> class

An Experiment that is backed by an ExperimentAdapter.

Implemented types
Implementers

Constructors

AdaptedExperiment(ExperimentAdapter _adapter, String id, bool enabled, T defaultVariant, Map<T, int>? weightedVariants, double sampleSize)
Creates a new AdaptedExperiment.

Properties

active bool
Whether this experiment is active.
no setteroverride
defaultVariant → T
The default value for users that are not part of this experiment.
final
enabled bool
final
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of this experiment.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleSize double
The sample size of this experiment.
final
trackingValue String
The representation of the value that should be used for tracking in analytics tools.
no setteroverride
value → T
The value of this experiment.
no setteroverride
weightedVariants Map<T, int>?
All of the variants of this experiment and their weights.
final

Methods

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

Operators

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