setTypeFor method

void setTypeFor({
  1. required CaseInsensitiveString key,
  2. required AttributeType type,
})

Changes the type of the value associated with the given key to type. The key must already exist in the map.