LineChartStyle constructor
LineChartStyle({
- required LegendStyle? legendStyle,
- required List<
DatasetStyle> datasetStyles, - RangeDatasetStyle? rangeDatasetStyle,
- AxisStyle? topAxisStyle,
- AxisStyle? bottomAxisStyle,
- AxisStyle? leftAxisStyle,
- AxisStyle? rightAxisStyle,
- HighlightStyle? highlightStyle,
- SelectionLabelStyle? selectionLabelStyle,
- Duration? animationDuration = const Duration(seconds: 1),
Implementation
LineChartStyle(
{required this.legendStyle,
required this.datasetStyles,
this.rangeDatasetStyle,
this.topAxisStyle,
this.bottomAxisStyle,
this.leftAxisStyle,
this.rightAxisStyle,
this.highlightStyle,
this.selectionLabelStyle,
this.animationDuration = const Duration(seconds: 1)}) {
assert(topAxisStyle != null || bottomAxisStyle != null);
assert(leftAxisStyle != null || rightAxisStyle != null);
}