doubleVariation method
Returns the value of flag flagKey for the current context as a double.
Will return the provided defaultValue if the flag is missing, not a number, or if some error occurs.
Implementation
double doubleVariation(String flagKey, double defaultValue) {
return _hookRunner
.withEvaluation(
flagKey,
_context,
LDValue.ofNum(defaultValue),
VariationMethodNames.doubleVariation,
() => _variationInternal(flagKey, LDValue.ofNum(defaultValue),
isDetailed: false, type: LDValueType.number),
environmentId: _flagManager.environmentId,
)
.value
.doubleValue();
}