SingleValueChart constructor

SingleValueChart({
  1. required String label,
  2. required dynamic value,
  3. String unit = '',
  4. Color? color,
  5. double? fontSize,
  6. EdgeInsets? margin,
  7. EdgeInsets? padding,
  8. VoidCallback? onTap,
  9. String? semanticLabel,
  10. ChartThemeData? themeData,
  11. bool enableTooltip = false,
  12. TooltipSettings tooltipSettings = const TooltipSettings(),
})

Implementation

SingleValueChart(
    {required this.label,
    required this.value,
    this.unit = '',
    this.color,
    this.fontSize,
    this.margin,
    this.padding,
    this.onTap,
    this.semanticLabel,
    this.themeData,
    this.enableTooltip = false,
    this.tooltipSettings = const TooltipSettings()});