declareDouble static method

Future<ApptimizeValueVariable<double>?> declareDouble(
  1. String name,
  2. double defaultValue
)

Create a double dynamic variable with a specified name and defaultValue.

Returns a new ApptimizeVariable of type double if no variable has been created before with this name. If an ApptimizeVariable already exists with this name it returns the existing double variable but does not update the default value or null if it is not a double.

The name and defaultValue must not be null.

Implementation

static Future<ApptimizeValueVariable<double>?> declareDouble(
    String name, double defaultValue) async {
  return _declareDynamicVariable<double>(name, _DVTypeDouble, defaultValue);
}