hasAttributeFromString method

bool hasAttributeFromString(
  1. String type
)

Returns true if the attribute with the specified name exists.

Implementation

bool hasAttributeFromString(String type) {
  return attributes[type] != null;
}