intVariation static method
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;
}