KpiCard constructor

const KpiCard({
  1. Key? key,
  2. required String label,
  3. required String value,
  4. String? valueSuffix,
  5. KpiDelta? delta,
  6. Widget? sparkline,
  7. Color? accent,
  8. bool loading = false,
  9. VoidCallback? onTap,
  10. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(20, 18, 20, 16),
})

Implementation

const KpiCard({
  super.key,
  required this.label,
  required this.value,
  this.valueSuffix,
  this.delta,
  this.sparkline,
  this.accent,
  this.loading = false,
  this.onTap,
  this.padding = const EdgeInsets.fromLTRB(20, 18, 20, 16),
});