SimpleContinuousHeatmapChart constructor

const SimpleContinuousHeatmapChart({
  1. Key? key,
  2. List<SimpleContinuousHeatmapPoint> points = const [],
  3. List<SimpleContinuousHeatmapBin> bins = const [],
  4. int xBins = 6,
  5. int yBins = 5,
  6. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  7. double? minX,
  8. double? maxX,
  9. double? minY,
  10. double? maxY,
  11. double? minValue,
  12. double? maxValue,
  13. double height = 260,
  14. EdgeInsets padding = _defaultPadding,
  15. Color? lowColor,
  16. Color? highColor,
  17. Color? emptyColor,
  18. Color? gridColor,
  19. Color? activeColor,
  20. TextStyle? labelStyle,
  21. TextStyle? valueStyle,
  22. bool showGrid = true,
  23. bool showXLabels = true,
  24. bool showYLabels = true,
  25. bool showValues = false,
  26. bool showLegend = true,
  27. bool showTooltip = true,
  28. bool showActiveCell = true,
  29. double cellGap = 3,
  30. double cellRadius = 5,
  31. SimpleContinuousHeatmapValueFormatter? valueFormatter,
  32. SimpleContinuousHeatmapValueFormatter? rangeFormatter,
  33. SimpleContinuousHeatmapTapCallback? onBinTap,
  34. SimpleContinuousHeatmapTooltipBuilder? tooltipBuilder,
  35. WidgetBuilder? emptyBuilder,
  36. String? semanticLabel,
  37. bool excludeFromSemantics = false,
  38. Duration animationDuration = const Duration(milliseconds: 650),
  39. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleContinuousHeatmapChart({
  super.key,
  this.points = const [],
  this.bins = const [],
  this.xBins = 6,
  this.yBins = 5,
  this.style = SimpleBarChartStyle.elegant,
  this.minX,
  this.maxX,
  this.minY,
  this.maxY,
  this.minValue,
  this.maxValue,
  this.height = 260,
  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 = false,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveCell = true,
  this.cellGap = 3,
  this.cellRadius = 5,
  this.valueFormatter,
  this.rangeFormatter,
  this.onBinTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 650),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(xBins > 0),
     assert(yBins > 0),
     assert(height > 0),
     assert(cellGap >= 0),
     assert(cellRadius >= 0);