triggerExperiment method
Implementation
Future<int?> triggerExperiment(String visitorCode, int experimentID) async {
try {
return await _channel.invokeMethod("triggerExperiment", <String, dynamic>{
"visitorCode": visitorCode,
"experimentID": experimentID,
"siteCode": this.siteCode
});
} on PlatformException catch (e) {
switch (e.code) {
case "SDKNotReady":
throw SDKNotReady();
case "ExperimentConfigurationNotFound":
throw ExperimentConfigurationNotFound();
case "NotTargeted":
throw NotTargeted();
case "NotActivated":
throw NotActivated();
default:
throw Exception(e);
}
}
}