initialSelectedDataIndexes property

List<int>? initialSelectedDataIndexes
final

List of data indexes to initially be selected

Defaults to null.

    Widget build(BuildContext context) {
   return Scaffold(
       body: Center(
           child: Container(
                 child: SfCartesianChart(
                     initialSelectedDataIndexes: <IndexesModel>[IndexesModel(1, 0)]
                )
             )
         )
     );
 }

Implementation

final List<int>? initialSelectedDataIndexes;