declareDoubleArray static method

Future<ApptimizeListVariable<double>?> declareDoubleArray(
  1. String name,
  2. List<double> defaultValue
)

Create a dynamic variable of an array containing doubles with a specified name and defaultValue.

Returns a new ApptimizeListVariable 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 list variable but does not update the default value or null if it is not a list of doubles.

The name and defaultValue must not be null.

Implementation

static Future<ApptimizeListVariable<double>?> declareDoubleArray(
    String name, List<double> defaultValue) async {
  return _declareDynamicListVariable<double>(
      name, _DVTypeArray + _DVTypeDouble, defaultValue);
}