textAlign property

TextAlign textAlign
final

How the text should be aligned horizontally in barcode.

The barcode textAlign property accepts only three enum values as TextAlign.center, TextAlign.left and TextAlign.right.

Defaults to TextAlign.center.

Also refer TextAlign.

Widget build(BuildContext context) {
   return Container(
       child: SfBarcodeGenerator(value:'123456',
       textAlign: TextAlign.right));
}
```dart

Implementation

final TextAlign textAlign;