SfBarcodeGenerator constructor

SfBarcodeGenerator({
  1. Key? key,
  2. required String? value,
  3. Symbology? symbology,
  4. Color? barColor,
  5. Color? backgroundColor,
  6. bool showValue = false,
  7. double textSpacing = 2,
  8. TextAlign textAlign = TextAlign.center,
  9. TextStyle? textStyle,
})

Generate the barcode using supported symbology types based on input values.

The value property is required to generate the barcode and value must not be null or empty.

Default symbology is Code128.

Implementation

SfBarcodeGenerator(
    {Key? key,
    required this.value,
    Symbology? symbology,
    this.barColor,
    this.backgroundColor,
    this.showValue = false,
    this.textSpacing = 2,
    this.textAlign = TextAlign.center,
    this.textStyle})
    : symbology = symbology ?? Code128(),
      super(key: key);