showValue property

bool showValue

Whether to show a human readable text (input value) along with a barcode.

If it is true, the value shown at the bottom of the barcode and the barcode height will be adjusted depending on the height of the text.

The spacing between text and barcode is controlled by the textSpacing property.

Defaults to false.

Widget build(BuildContext context) {
   return Container(
       child: SfBarcodeGenerator(value:'123456',
       showValue : true));


final bool showValue;