declareStringDictionary static method

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

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

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

The name and defaultValue must not be null.

Implementation

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