textStyle property Null safety

GaugeTextStyle textStyle
final

The style to use for the marker pointer text.

Using GaugeTextStyle to add the style to the pointer text.

Defaults to the GaugeTextStyle property with font size is 12.0 and font family is Segoe UI.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
            pointers: <GaugePointer>[MarkerPointer(value: 50,
            text: 'marker', textStyle:
            GaugeTextStyle(fontSize: 20, fontStyle: FontStyle.italic),
            markerType: MarkerType.text
            )],
           )]
       ));
}

Implementation

final GaugeTextStyle textStyle;