declareBool static method

Future<ApptimizeValueVariable<bool>?> declareBool(
  1. String name,
  2. bool defaultValue
)

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

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

The name and defaultValue must not be null.

Implementation

static Future<ApptimizeValueVariable<bool>?> declareBool(
    String name, bool defaultValue) async {
  return _declareDynamicVariable<bool>(name, _DVTypeBool, defaultValue);
}