declareBoolArray static method

Future<ApptimizeListVariable<bool>?> declareBoolArray(
  1. String name,
  2. List<bool> defaultValue

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

Returns a new ApptimizeListVariable of type bool 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 booleans.

The name and defaultValue must not be null.


static Future<ApptimizeListVariable<bool>?> declareBoolArray(
    String name, List<bool> defaultValue) async {
  return _declareDynamicListVariable<bool>(
      name, _DVTypeArray + _DVTypeBool, defaultValue);