getAttribute method

Attribute? getAttribute(
  1. String attributeId
)

Returns the product attribute matching an attribute id.

Implementation

Attribute? getAttribute(
  final String attributeId,
) {
  final Map<String, Attribute> attributes = getAttributes(
    <String>[attributeId],
  );
  return attributes[attributeId];
}