isVisibleInLegend property

bool isVisibleInLegend
final

Boolean property to determine the rendering of legends for the technical indicators.

Defaults to true.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           indicators: <TechnicalIndicators<dynamic, dynamic>>[
           SmaIndicator<dynamic, dynamic>(
               isVisibleInLegend : false,
             ),
          ],
       ));
}

Implementation

final bool isVisibleInLegend;