declareBoolDictionary static method

Future<ApptimizeMapVariable<bool>?> declareBoolDictionary(
  1. String name,
  2. Map<String, bool> defaultValue
)

Create a dynamic variable of an map containing booleans keyed by strings with a specified name and defaultValue.

Returns a new ApptimizeMapVariable 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 map variable but does not update the default value or null if it is not a boolean dictionary.

The name and defaultValue must not be null.

Implementation

static Future<ApptimizeMapVariable<bool>?> declareBoolDictionary(
    String name, Map<String, bool> defaultValue) async {
  return _declareDynamicMapVariable<bool>(
      name, _DVTypeDictionary + _DVTypeBool, defaultValue);
}