existsAttribute method

bool existsAttribute(
  1. String attrName
)

Whether this object has an attribute matching the given name.

Implementation

bool existsAttribute(String attrName) => findAttribute(attrName) != null;