api / org.gradle.api.attributes / AttributesSchema / hasAttribute

hasAttribute

abstract fun hasAttribute(key: Attribute<*>): Boolean

Returns true when this schema contains the given attribute.