legendIconType property Null safety

LegendIconType legendIconType
final

Property to provide icon type for the technical indicators legend.

Defaults to LegendIconType.seriesType.

Widget build(BuildContext context) {
 return SfCartesianChart(
   indicators: <TechnicalIndicators<Sample, num>>[
     StochasticIndicator<Sample, num>(
       legendIconType:  LegendIconType.diamond
     ),
   ],
 );
}

Implementation

final LegendIconType legendIconType;