color property Null safety

Color? color
final

Colors of the major tick lines.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           primaryXAxis: NumericAxis(
                majorTickLines: const MajorTickLines(
                  color: Colors.black
                )
               ),
       )
   );
}

Implementation

final Color? color;