FlStatistic constructor
const
FlStatistic({
- Key? key,
- required String title,
- required dynamic value,
- String? prefix,
- String? suffix,
- TextStyle? titleStyle,
- TextStyle? valueStyle,
- TextStyle? prefixStyle,
- TextStyle? suffixStyle,
- int precision = 0,
- String groupSeparator = ',',
- String decimalSeparator = '.',
- bool animation = false,
- Duration animationDuration = const Duration(milliseconds: 2000),
- Widget? prefixIcon,
- Widget? suffixIcon,
- 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,
});