brightness property Null safety

Brightness brightness

The brightness of the overall theme of the application for the barcode widgets.

If brightness is not specified, then based on the Theme.of(context).brightness, brightness for barcode widgets will be applied.

Also refer Brightness.

Widget build(BuildContext context) {
 return Scaffold(
   appBar: AppBar(),
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           barcodeThemeData: SfBarcodeThemeData(
             brightness: Brightness.dark
         child: SfBarcodeGenerator(
           value: '',
           symbology: QRCode() ,
           showValue: true,


final Brightness brightness;