addCustomAttribute method

void addCustomAttribute(
  1. String name,
  2. dynamic value
)

Implementation

void addCustomAttribute(String name, dynamic value) {
  assert(
    value is String || value is bool || value is int,
    'Value must be primary type - string, bool or int',
  );
  _attributes.addAll(<String, dynamic>{name: value});
}