SimpleTileMapChart constructor

const SimpleTileMapChart({
  1. Key? key,
  2. required List<SimpleTileMapData> data,
  3. SimpleTileMapShape shape = SimpleTileMapShape.rounded,
  4. SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
  5. int? rows,
  6. int? columns,
  7. double? minValue,
  8. double? maxValue,
  9. double height = 260,
  10. EdgeInsets padding = _defaultPadding,
  11. Color? lowColor,
  12. Color? highColor,
  13. Color? emptyColor,
  14. Color? borderColor,
  15. Color? activeColor,
  16. TextStyle? labelStyle,
  17. TextStyle? valueStyle,
  18. bool showLabels = true,
  19. bool showValues = true,
  20. bool showLegend = true,
  21. bool showTooltip = true,
  22. bool showActiveTile = true,
  23. bool showEmptyTiles = true,
  24. double tileGap = 4,
  25. double tileRadius = 7,
  26. SimpleTileMapValueFormatter? valueFormatter,
  27. SimpleTileMapTapCallback? onTileTap,
  28. SimpleTileMapTooltipBuilder? tooltipBuilder,
  29. WidgetBuilder? emptyBuilder,
  30. String? semanticLabel,
  31. bool excludeFromSemantics = false,
  32. Duration animationDuration = const Duration(milliseconds: 680),
  33. Curve animationCurve = Curves.easeOutCubic,
})

Implementation

const SimpleTileMapChart({
  super.key,
  required this.data,
  this.shape = SimpleTileMapShape.rounded,
  this.style = SimpleBarChartStyle.elegant,
  this.rows,
  this.columns,
  this.minValue,
  this.maxValue,
  this.height = 260,
  this.padding = _defaultPadding,
  this.lowColor,
  this.highColor,
  this.emptyColor,
  this.borderColor,
  this.activeColor,
  this.labelStyle,
  this.valueStyle,
  this.showLabels = true,
  this.showValues = true,
  this.showLegend = true,
  this.showTooltip = true,
  this.showActiveTile = true,
  this.showEmptyTiles = true,
  this.tileGap = 4,
  this.tileRadius = 7,
  this.valueFormatter,
  this.onTileTap,
  this.tooltipBuilder,
  this.emptyBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.animationDuration = const Duration(milliseconds: 680),
  this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
     assert(rows == null || rows > 0),
     assert(columns == null || columns > 0),
     assert(minValue == null || maxValue == null || minValue < maxValue),
     assert(tileGap >= 0),
     assert(tileRadius >= 0);