DChartSingleBar constructor

const DChartSingleBar({
  1. Key? key,
  2. Color? backgroundColor,
  3. required Color foregroundColor,
  4. BorderRadius? radius,
  5. required double value,
  6. required double max,
  7. void onBackground(
    1. double max
    )?,
  8. void onForground(
    1. double value
    )?,
  9. bool? ltr,
  10. Widget? backgroundLabel,
  11. AlignmentGeometry? backgroundLabelAlign = Alignment.centerRight,
  12. EdgeInsetsGeometry? backgroundLabelPadding = const EdgeInsets.all(0),
  13. Widget? foregroundLabel,
  14. AlignmentGeometry? foregroundLabelAlign = Alignment.centerRight,
  15. EdgeInsetsGeometry? foregroundLabelPadding = const EdgeInsets.all(0),
})

Implementation

const DChartSingleBar({
  super.key,
  this.backgroundColor,
  required this.foregroundColor,
  this.radius,
  required this.value,
  required this.max,
  this.onBackground,
  this.onForground,
  this.ltr,
  this.backgroundLabel,
  this.backgroundLabelAlign = Alignment.centerRight,
  this.backgroundLabelPadding = const EdgeInsets.all(0),
  this.foregroundLabel,
  this.foregroundLabelAlign = Alignment.centerRight,
  this.foregroundLabelPadding = const EdgeInsets.all(0),
});