SimpleMosaicPlotChart constructor

const SimpleMosaicPlotChart({
  1. Key? key,
  2. List<String> xLabels = const [],
  3. List<String> yLabels = const [],
  4. required List<SimpleMosaicPlotCell> cells,
  5. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  6. double height = 260,
  7. EdgeInsets padding = _defaultPadding,
  8. List<Color>? palette,
  9. Color? cellColor,
  10. Color? borderColor,
  11. Color? gridColor,
  12. Color? activeColor,
  13. TextStyle? labelStyle,
  14. TextStyle? valueStyle,
  15. bool showGrid = true,
  16. bool showValues = true,
  17. bool showPercentages = true,
  18. bool showCellLabels = true,
  19. bool showXLabels = true,
  20. bool showColumnTotals = true,
  21. bool showLegend = true,
  22. bool showTooltip = true,
  23. bool showActiveCell = true,
  24. double columnGap = 5,
  25. double cellGap = 2,
  26. double cellRadius = 4,
  27. SimpleMosaicPlotValueFormatter? valueFormatter,
  28. SimpleMosaicPlotValueFormatter? shareFormatter,
  29. SimpleMosaicPlotTapCallback? onCellTap,
  30. SimpleMosaicPlotTooltipBuilder? tooltipBuilder,
  31. WidgetBuilder? emptyBuilder,
  32. String? semanticLabel,
  33. bool excludeFromSemantics = false,
  34. Duration animationDuration = const Duration(milliseconds: 750),
  35. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleMosaicPlotChart({
  super.key,
  this.xLabels = const [],
  this.yLabels = const [],
  required this.cells,
  this.style = SimpleBarChartStyle.elegant,
  this.height = 260,
  this.padding = _defaultPadding,
  this.palette,
  this.cellColor,
  this.borderColor,
  this.gridColor,
  this.activeColor,
  this.labelStyle,
  this.valueStyle,
  this.showGrid = true,
  this.showValues = true,
  this.showPercentages = true,
  this.showCellLabels = true,
  this.showXLabels = true,
  this.showColumnTotals = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveCell = true,
  this.columnGap = 5,
  this.cellGap = 2,
  this.cellRadius = 4,
  this.valueFormatter,
  this.shareFormatter,
  this.onCellTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 750),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
     assert(columnGap >= 0),
     assert(cellGap >= 0),
     assert(cellRadius >= 0);