intVariation method

int intVariation(
  1. String flagKey,
  2. int defaultValue
)

Returns the value of flag flagKey for the current context as an int.

Will return the provided defaultValue if the flag is missing, not a number, or if some error occurs.

Implementation

int intVariation(String flagKey, int defaultValue) {
  return _client.intVariation(flagKey, defaultValue);
}