PrintColumn constructor

const PrintColumn({
  1. required String text,
  2. required double x,
  3. TextAlign align = TextAlign.left,
  4. double fontSize = 24,
  5. FontWeight fontWeight = FontWeight.normal,
  6. String fontFamily = 'Siemreap',
  7. Color color = Colors.black,
})

Creates a new print column.

  • text: The text content of the column
  • x: X position (0-576, matching printer width)
  • align: Text alignment within the column
  • fontSize: Font size in points
  • fontWeight: Font weight (normal, bold, etc.)
  • fontFamily: Font family to use
  • color: Text color

Implementation

const PrintColumn({
  required this.text,
  required this.x,
  this.align = TextAlign.left,
  this.fontSize = 24,
  this.fontWeight = FontWeight.normal,
  this.fontFamily = 'Siemreap',
  this.color = Colors.black,
});