NiceStatCard constructor

const NiceStatCard({
  1. Key? key,
  2. required String title,
  3. required String value,
  4. String? subtitle,
  5. IconData? icon,
  6. Color? iconColor,
  7. Color? backgroundColor,
  8. double? change,
  9. String? changeLabel,
  10. bool changeIsPositive = true,
  11. VoidCallback? onTap,
  12. Widget? chart,
  13. NiceStatCardSize size = NiceStatCardSize.medium,
})

Implementation

const NiceStatCard({
  super.key,
  required this.title,
  required this.value,
  this.subtitle,
  this.icon,
  this.iconColor,
  this.backgroundColor,
  this.change,
  this.changeLabel,
  this.changeIsPositive = true,
  this.onTap,
  this.chart,
  this.size = NiceStatCardSize.medium,
});