maximum property Null safety

DateTime? maximum
final

Maximum value of the axis. The axis will end at this date.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: DateTimeAxis(maximum: DateTime(2019)),
       )
   );
}

Implementation

final DateTime? maximum;