declareInteger static method

Future<ApptimizeValueVariable<int>?> declareInteger(
  1. String name,
  2. int defaultValue

Create a integer dynamic variable with a specified name and defaultValue.

Returns a new ApptimizeVariable 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 int variable but does not update the default value or null if it is not an int.

The name and defaultValue must not be null.


static Future<ApptimizeValueVariable<int>?> declareInteger(
    String name, int defaultValue) async {
  return _declareDynamicVariable<int>(name, _DVTypeInt, defaultValue);