BarDataHour constructor Null safety

BarDataHour(
  1. {required double value,
  2. required String valueLabel,
  3. required double realValue,
  4. required String label,
  5. required DateTime dateTime,
  6. double valueBottom = 0,
  7. String valueBottomLabel = '',
  8. double realValueBottom = 0,
  9. double groupRangeTopValue = 0,
  10. double groupRangeBottomValue = 0,
  11. double groupAvgValue = 0,
  12. double totalRangeTopValue = 0,
  13. double totalRangeBottomValue = 0,
  14. double totalAvgValue = 0,
  15. double groupRangeTopValueBottom = 0,
  16. double groupRangeBottomValueBottom = 0,
  17. double groupAvgValueBottom = 0,
  18. double totalRangeTopValueBottom = 0,
  19. double totalRangeBottomValueBottom = 0,
  20. double totalAvgValueBottom = 0,
  21. bool isHighlighted = false}
)

Implementation

BarDataHour({
  required this.value,
  required this.valueLabel,
  required this.realValue,
  required this.label,
  required this.dateTime,
  this.valueBottom = 0,
  this.valueBottomLabel = '',
  this.realValueBottom = 0,
  this.groupRangeTopValue = 0,
  this.groupRangeBottomValue = 0,
  this.groupAvgValue = 0,
  this.totalRangeTopValue = 0,
  this.totalRangeBottomValue = 0,
  this.totalAvgValue = 0,
  this.groupRangeTopValueBottom = 0,
  this.groupRangeBottomValueBottom = 0,
  this.groupAvgValueBottom = 0,
  this.totalRangeTopValueBottom = 0,
  this.totalRangeBottomValueBottom = 0,
  this.totalAvgValueBottom = 0,
  this.isHighlighted = false,
});