HeatMap constructor
HeatMap({
- Key? key,
- required DateTime startDate,
- required DateTime endDate,
- required Map<
int, Color> colorsets, - double? size,
- double? fontSize,
- double? colorTipSize,
- Map<
DateTime, int> ? datasets, - Color? defaultColor,
- Color? textColor,
- double? borderRadius,
- dynamic onClick()?,
- EdgeInsets? margin,
- List<
String> ? monthLabel, - List<
String> ? weekLabel, - 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;