variation static method
Future<Variation>
variation(
- int experimentKey, {
- @Deprecated("Use setUser(user) instead.") HackleUser? user,
Returns the variation for an experiment.
experimentKey
- The key of the experiment.
user
- The specified user (Deprecated).
Returns: Future<Variation>
Implementation
static Future<Variation> variation(
int experimentKey, {
@Deprecated("Use setUser(user) instead.") HackleUser? user,
}) {
return HacklePlatform.instance.variation(experimentKey, user: user);
}