LineChartStyle constructor

LineChartStyle({
  1. required LegendStyle? legendStyle,
  2. required List<DatasetStyle> datasetStyles,
  3. RangeDatasetStyle? rangeDatasetStyle,
  4. AxisStyle? topAxisStyle,
  5. AxisStyle? bottomAxisStyle,
  6. AxisStyle? leftAxisStyle,
  7. AxisStyle? rightAxisStyle,
  8. HighlightStyle? highlightStyle,
  9. SelectionLabelStyle? selectionLabelStyle,
  10. 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);
}