setNumberAttribute method

void setNumberAttribute(
  1. String name,
  2. num value
)

Adds a number attribute.

Implementation

void setNumberAttribute(String name, num value) {
  operations.add({
    ATTRIBUTE_OPERATION_TYPE: ATTRIBUTE_OPERATION_SET,
    ATTRIBUTE_OPERATION_KEY: name,
    ATTRIBUTE_OPERATION_VALUE: value,
    ATTRIBUTE_OPERATION_VALUE_TYPE: "number"
  });
}