data property Null safety

SfBarcodeThemeData data
final

Specifies the color and typography values for descendant barcode widgets.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfBarcodeTheme(
      data: SfBarcodeThemeData(
        brightness: Brightness.light
      ),
      child: SfBarcodeGenerator(
        value: 'www.sycfusion.com',
        symbology: QRCode() ,
      )
    ),
  );
}

Implementation

final SfBarcodeThemeData data;