SimpleTileMapChart constructor
const
SimpleTileMapChart({
- Key? key,
- required List<
SimpleTileMapData> data, - SimpleTileMapShape shape = SimpleTileMapShape.rounded,
- SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- int? rows,
- int? columns,
- double? minValue,
- double? maxValue,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- Color? lowColor,
- Color? highColor,
- Color? emptyColor,
- Color? borderColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showLabels = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveTile = true,
- bool showEmptyTiles = true,
- double tileGap = 4,
- double tileRadius = 7,
- SimpleTileMapValueFormatter? valueFormatter,
- SimpleTileMapTapCallback? onTileTap,
- SimpleTileMapTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 680),
- 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);