HeatMap constructor

const HeatMap({
  1. Key? key,
  2. required Map<DateTime, int> data,
  3. DateTime? startDate,
  4. DateTime? endDate,
  5. double cellSize = 14,
  6. double cellSpacing = 3,
  7. double borderRadius = AppRadius.small,
  8. List<Color>? colorRange,
  9. Color? emptyColor,
  10. bool showMonthLabels = true,
  11. bool showDayLabels = true,
  12. void onDayTap(
    1. DateTime date,
    2. int count
    )?,
})

Implementation

const HeatMap({
  super.key,
  required this.data,
  this.startDate,
  this.endDate,
  this.cellSize = 14,
  this.cellSpacing = 3,
  this.borderRadius = AppRadius.small,
  this.colorRange,
  this.emptyColor,
  this.showMonthLabels = true,
  this.showDayLabels = true,
  this.onDayTap,
});