ScoreCard.attribute constructor

ScoreCard.attribute({
  1. required Attribute attribute,
  2. required bool isClickable,
  3. 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);