barColor property Null safety

Color barColor
final

Specifies the color for barcodes.

Widget build(BuildContext context) {
 return Scaffold(
   appBar: AppBar(),
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           barcodeThemeData: SfBarcodeThemeData(
             barColor: Colors.green
             ),
           ),
         child: SfBarcodeGenerator(
           value: 'www.sycfusion.com',
           symbology: QRCode() ,
           showValue: true,
         ),
       ),
     )
  );
}

Implementation

final Color barColor;