doubleVariation static method Null safety

Future<double> doubleVariation(
  1. String flagKey,
  2. double defaultValue
)

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

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