declareIntegerDictionary static method

Future<ApptimizeMapVariable<int>?> declareIntegerDictionary(
  1. String name,
  2. Map<String, int> defaultValue

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

Returns a new ApptimizeMapVariable of type int 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 an integer dictionary.

The name and defaultValue must not be null.


static Future<ApptimizeMapVariable<int>?> declareIntegerDictionary(
    String name, Map<String, int> defaultValue) async {
  return _declareDynamicMapVariable<int>(
      name, _DVTypeDictionary + _DVTypeInt, defaultValue);