data property Null safety

SfGaugeThemeData data
final

Specifies the color and typography values for descendant gauges widgets.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfGaugeTheme(
      data: SfGaugeThemeData(
        brightness: Brightness.dark,
        backgroundColor: Colors.grey
      ),
      child: SfRadialGauge()
    ),
  );
}

Implementation

final SfGaugeThemeData data;