addAttribute method

MoEProperties addAttribute(
  1. String key,
  2. dynamic value
)

Adds an event attribute of type string, number or boolean.

Implementation

MoEProperties addAttribute(String key, dynamic value) {
  if (!_isAcceptedDataType(value)) {
    return this;
  }
  _addAttribute(key, value);
  return this;
}