ScoreCard.attribute constructor
- required Attribute attribute,
- required bool isClickable,
- EdgeInsetsGeometry? margin,
Implementation
ScoreCard.attribute({
required Attribute attribute,
required this.isClickable,
this.margin,
}) : type = ScoreCardType.attribute,
iconUrl = attribute.iconUrl,
description = attribute.descriptionShort ?? attribute.description ?? '',
cardEvaluation = getCardEvaluationFromAttribute(attribute);