set method

void set({
  1. required CaseInsensitiveString key,
  2. required dynamic value,
  3. AttributeType type = AttributeType.variant,
})

Associates the key with the given value, optionally specifying an explicit type.