dataSource property Null safety

List<T>? dataSource
final

Property to provide data for the technical indicators without any series.

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

Implementation

final List<T>? dataSource;