end property

double? end
final

Customizes the end position. Define any value between the provided data range as the end value. To make the plot band visible, need to set both the start and end property.

Defaults to null.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     plotBand: SparkChartPlotBand(start: 15, end: 25),
     data: <double>[18, 24, 30, 14, 28],
          )
       ),
   );
}

Implementation

final double? end;