ABTestingService class

A/B testing service

Constructors

ABTestingService()

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

clearUserVariants() Future<void>
Clear user variants
forceVariant(String experimentId, String variantName) → void
Force set variant for user (for testing)
getAllExperiments() List<ABExperiment>
Get all experiments
getExperiment<T>(String experimentId) ABExperiment<T>?
Get experiment
getUserVariants() Map<String, String>
Get all user variants
getVariant<T>(String experimentId) ABVariant<T>
Get variant for user
initialize({StorageBackend? storage}) Future<void>
Initialize with storage
isInVariant(String experimentId, String variantName) bool
Check if user is in variant
registerExperiment<T>(ABExperiment<T> experiment) → void
Register experiment
removeExperiment(String experimentId) → void
Remove experiment