doubleVariationDetails method
Implementation
Future<BKTEvaluationDetails<double>> doubleVariationDetails(
String featureId, {
required double defaultValue,
}) async {
final userId = await _getCurrentUserIdOrEmpty();
return valueGuard<BKTEvaluationDetails<double>>(
await _invokeMethod(CallMethods.doubleVariationDetails.name, argument: {
CallMethodParams.featureId: featureId,
CallMethodParams.defaultValue: defaultValue,
}),
customMapping: (response) {
return BKTEvaluationDetails.fromJson<double>(
response,
);
},
).onError((error, stackTrace) {
debugPrint("get doubleVariationDetails fail: ${error?.toString()}");
return BKTEvaluationDetails.createDefaultValue(
featureId, userId, defaultValue);
});
}