HeatMap constructor

HeatMap({
  1. Key? key,
  2. required DateTime startDate,
  3. required DateTime endDate,
  4. required Map<int, Color> colorsets,
  5. double? size,
  6. double? fontSize,
  7. double? colorTipSize,
  8. Map<DateTime, int>? datasets,
  9. Color? defaultColor,
  10. Color? textColor,
  11. double? borderRadius,
  12. dynamic onClick(
    1. DateTime
    )?,
  13. EdgeInsets? margin,
  14. List<String>? monthLabel,
  15. List<String>? weekLabel,
  16. List<String>? colorTipLabel,
})

Implementation

HeatMap({
  super.key,
  required this.startDate,
  required this.endDate,
  required this.colorsets,
  this.size,
  this.fontSize,
  this.colorTipSize,
  this.datasets,
  this.defaultColor,
  this.textColor,
  this.borderRadius,
  this.onClick,
  this.margin,
  this.monthLabel,
  this.weekLabel,
  this.colorTipLabel,
}) : _dateDifferent = endDate.difference(startDate).inDays;