longPeriod property Null safety

int longPeriod
final

Long period value of the macd indicator.

Defaults to 26.

Widget build(BuildContext context) {
 return SfCartesianChart(
   indicators: <TechnicalIndicators<Sample, num>>[
     MacdIndicator<Sample, num>(
       seriesName: 'Series1',
       longPeriod: 31
     ),
   ],
   series: <ChartSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       name: 'Series1'
     )
   ]
 );
}

Implementation

final int longPeriod;