declareStringArray static method

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

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

Returns a new ApptimizeListVariable of type String 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 strings.

The name and defaultValue must not be null.

Implementation

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