SimpleHeatmapChart constructor

const SimpleHeatmapChart({
  1. Key? key,
  2. List<String> xLabels = const [],
  3. List<String> yLabels = const [],
  4. required List<SimpleHeatmapCell> cells,
  5. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  6. double? minValue,
  7. double? maxValue,
  8. double height = 250,
  9. EdgeInsets padding = _defaultPadding,
  10. Color? lowColor,
  11. Color? highColor,
  12. Color? emptyColor,
  13. Color? gridColor,
  14. Color? activeColor,
  15. TextStyle? labelStyle,
  16. TextStyle? valueStyle,
  17. bool showGrid = true,
  18. bool showXLabels = true,
  19. bool showYLabels = true,
  20. bool showValues = true,
  21. bool showLegend = true,
  22. bool showTooltip = true,
  23. bool showActiveCell = true,
  24. double cellGap = 3,
  25. double cellRadius = 5,
  26. SimpleHeatmapValueFormatter? valueFormatter,
  27. SimpleHeatmapCellTapCallback? onCellTap,
  28. SimpleHeatmapTooltipBuilder? tooltipBuilder,
  29. WidgetBuilder? emptyBuilder,
  30. String? semanticLabel,
  31. bool excludeFromSemantics = false,
  32. Duration animationDuration = const Duration(milliseconds: 650),
  33. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleHeatmapChart({
  super.key,
  this.xLabels = const [],
  this.yLabels = const [],
  required this.cells,
  this.style = SimpleBarChartStyle.elegant,
  this.minValue,
  this.maxValue,
  this.height = 250,
  this.padding = _defaultPadding,
  this.lowColor,
  this.highColor,
  this.emptyColor,
  this.gridColor,
  this.activeColor,
  this.labelStyle,
  this.valueStyle,
  this.showGrid = true,
  this.showXLabels = true,
  this.showYLabels = true,
  this.showValues = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveCell = true,
  this.cellGap = 3,
  this.cellRadius = 5,
  this.valueFormatter,
  this.onCellTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 650),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
     assert(cellGap >= 0),
     assert(cellRadius >= 0);