SimpleBarcodePlotChart constructor
const
SimpleBarcodePlotChart({
- Key? key,
- required List<
SimpleBarcodePlotSeries> series, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 190,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? tickColor,
- Color? baselineColor,
- Color? gridColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool includeZero = false,
- bool showGrid = true,
- bool showLabels = true,
- bool showValues = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveTick = true,
- bool showBaseline = true,
- bool showMedian = false,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? tickLength,
- double? tickWidth,
- double tickOpacity = 0.72,
- SimpleBarcodePlotValueFormatter? valueFormatter,
- SimpleBarcodePlotTapCallback? onTickTap,
- SimpleBarcodePlotTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 580),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleBarcodePlotChart({
super.key,
required this.series,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 190,
this.padding = _defaultPadding,
this.palette,
this.tickColor,
this.baselineColor,
this.gridColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.includeZero = false,
this.showGrid = true,
this.showLabels = true,
this.showValues = false,
this.showLegend = true,
this.showTooltip = true,
this.showActiveTick = true,
this.showBaseline = true,
this.showMedian = false,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.tickLength,
this.tickWidth,
this.tickOpacity = 0.72,
this.valueFormatter,
this.onTickTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 580),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLineCount >= 2),
assert(tickLength == null || tickLength > 0),
assert(tickWidth == null || tickWidth > 0),
assert(tickOpacity >= 0 && tickOpacity <= 1);