barColor property
Define the color for barcode elements.
Color to be used when painting a vertical bar on a one-dimensional barcode and a dot on a two-dimensional barcode. This color is not used when painting a human readable text.
Defaults to null.
Widget build(BuildContext context) {
return Container(
child: SfBarcodeGenerator(value:'123456',
barColor : Colors.red));
}
```dart
Implementation
final Color? barColor;