splineType property Null safety

SplineType? splineType

Type of the spline curve. Various type of curves such as clamped, cardinal, monotonic, and natural can be rendered between the data points.

Defaults to SplineType.natural.

Also refer SplineType.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <SplineSeries<SalesData, num>>[
      SplineSeries<SalesData, num>(
        splineType: SplineType.monotonic,


final SplineType? splineType;