FlStatistic constructor

const FlStatistic({
  1. Key? key,
  2. required String title,
  3. required dynamic value,
  4. String? prefix,
  5. String? suffix,
  6. TextStyle? titleStyle,
  7. TextStyle? valueStyle,
  8. TextStyle? prefixStyle,
  9. TextStyle? suffixStyle,
  10. int precision = 0,
  11. String groupSeparator = ',',
  12. String decimalSeparator = '.',
  13. bool animation = false,
  14. Duration animationDuration = const Duration(milliseconds: 2000),
  15. Widget? prefixIcon,
  16. Widget? suffixIcon,
  17. Color? valueColor,
})

Implementation

const FlStatistic({
  super.key,
  required this.title,
  required this.value,
  this.prefix,
  this.suffix,
  this.titleStyle,
  this.valueStyle,
  this.prefixStyle,
  this.suffixStyle,
  this.precision = 0,
  this.groupSeparator = ',',
  this.decimalSeparator = '.',
  this.animation = false,
  this.animationDuration = const Duration(milliseconds: 2000),
  this.prefixIcon,
  this.suffixIcon,
  this.valueColor,
});