Trendline constructor
Trendline({
- bool enableTooltip = true,
- double? intercept,
- String? name,
- List<
double> ? dashArray, - Color color = Colors.blue,
- TrendlineType type = TrendlineType.linear,
- double backwardForecast = 0,
- double forwardForecast = 0,
- double opacity = 1,
- bool isVisible = true,
- double width = 2,
- double animationDuration = 1500,
- double? animationDelay = 0,
- String valueField = 'high',
- bool isVisibleInLegend = true,
- LegendIconType legendIconType = LegendIconType.horizontalLine,
- MarkerSettings markerSettings = const MarkerSettings(),
- int polynomialOrder = 2,
- int period = 2,
- ChartTrendlineRenderCallback? onRenderDetailsUpdate,
Creating an argument constructor of Trendline class.
Implementation
Trendline({
this.enableTooltip = true,
this.intercept,
this.name,
this.dashArray,
this.color = Colors.blue,
this.type = TrendlineType.linear,
this.backwardForecast = 0,
this.forwardForecast = 0,
this.opacity = 1,
this.isVisible = true,
this.width = 2,
this.animationDuration = 1500,
this.animationDelay = 0,
this.valueField = 'high',
this.isVisibleInLegend = true,
this.legendIconType = LegendIconType.horizontalLine,
this.markerSettings = const MarkerSettings(),
this.polynomialOrder = 2,
this.period = 2,
this.onRenderDetailsUpdate,
});