MetricsCardRow.fromDef constructor
Row def from a MetricDef (canonical label/unit) + optional subtitle.
Implementation
factory MetricsCardRow.fromDef(MetricDef def, {String? subtitle}) =>
MetricsCardRow(
key: def.key,
label: def.label,
unit: def.unit,
subtitle: subtitle,
);