StatCard constructor

const StatCard({
  1. Key? key,
  2. required String title,
  3. required String value,
  4. String? change,
  5. String? changeLabel,
  6. bool isPositive = true,
  7. required IconData icon,
  8. Gradient? gradient,
  9. Color? iconBgColor,
})

Implementation

const StatCard({
  Key? key,
  required this.title,
  required this.value,
  this.change,
  this.changeLabel,
  this.isPositive = true,
  required this.icon,
  this.gradient,
  this.iconBgColor,
}) : super(key: key);