intVariation static method

Future<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

static Future<int> intVariation(String flagKey, int defaultValue) async {
  int? result = await _channel.invokeMethod('intVariation', {'flagKey': flagKey, 'defaultValue': defaultValue });
  return result ?? defaultValue;
}