labelAlignment property Null safety

LabelAlignment labelAlignment
final

Alignment of the labels.

Axis labels can be placed either start or end or center of the grid lines.

Defaults to LabelAlignment.start.

Also refer LabelAlignment.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(labelAlignment: LabelAlignment.start),
       ));
}

Implementation

final LabelAlignment labelAlignment;