hackle 2.2.0 hackle: ^2.2.0 copied to clipboard
Flutter SDK For Hackle
Hackle #
Flutter SDK For Hackle
Usage #
Initialize #
await HackleApp.initialize(YOUT_APP_SDK_KEY);
Decide the A/B test variation #
Variation variation = await HackleApp.variation(42);
if (variation == Variation.A) {
featureA();
} else {
featureB();
}
Decide the Feature #
bool featureOn = await HackleApp.isFeatureOn(42);
if (featureOn) {
onSomethingFeature();
} else {
offSomethingFeature();
}
Tracks the event #
HackleApp.track(HackleEvent.builder("purchase").build());