sizeType property Null safety

DateTimeIntervalType sizeType
final

Date time interval type of the plot band.

Defaults to DateTimeIntervalType.auto.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(
            plotBands: <PlotBand>[
               PlotBand(
                   isVisible:true,
                   sizeType: DateTimeIntervalType.years
               )
             ]
          )
       )
   );
}

Implementation

final DateTimeIntervalType sizeType;