canHandle method

bool canHandle(
  1. List<CustomAttribute> attributes
)

Check if this adapter can handle the given attributes

Implementation

bool canHandle(List<CustomAttribute> attributes) {
  final attributeCodes = attributes.map((attr) => attr.attributeCode).toSet();
  final supportedCodes = supportedAttributeCodes.toSet();

  // Check if at least one supported attribute is present
  return attributeCodes.intersection(supportedCodes).isNotEmpty;
}