intVariationDetail method

LDEvaluationDetail<int> intVariationDetail(
  1. String flagKey,
  2. int defaultValue
)

Returns the value of flag flagKey for the current context as an int, along with information about the resultant value.

See LDEvaluationDetail for more information on the returned value. Note that DataSourceConfig.evaluationReasons must have been set to true to request the additional evaluation information from the backend.

Implementation

LDEvaluationDetail<int> intVariationDetail(String flagKey, int defaultValue) {
  return _client.intVariationDetail(flagKey, defaultValue);
}