alignment property Null safety

GaugeAlignment alignment
final

How the title text should be aligned horizontally.

The alignment is applicable when the width of the gauge title is less than the width of the gauge.

GaugeAlignment.near places the title at the beginning of gauge whereas the GaugeAlignment.center moves the gauge title to the center of gauge and the GaugeAlignment.far places the gauge title at the end of the gauge.

Defaults to GaugeAlignment.center.

Also refer GaugeAlignment

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
           title: GaugeTitle(
                   text: 'Gauge Title',
                   alignment: GaugeAlignment.far
                  )
       ));
}

Implementation

final GaugeAlignment alignment;