LineText constructor

LineText({
  1. String? type,
  2. String? content,
  3. int? size = 0,
  4. int? align = ALIGN_LEFT,
  5. int? weight = 0,
  6. int? width = 0,
  7. int? height = 0,
  8. int? underline = 0,
  9. int? linefeed = 0,
  10. int? fontWidth = 1,
  11. int? fontHeight = 1,
  12. int? codeHeight = 40,
  13. int? codeWidth = 5,
  14. int? x = 0,
  15. int? y = 0,
})

Implementation

LineText(
    {this.type, //text,barcode,qrcode,image(base64 string)
    this.content,
    this.size = 0,
    this.align = ALIGN_LEFT,
    this.weight = 0, //0,1
    this.width = 0, //0,1
    this.height = 0, //0,1
    this.underline = 0, //0,1
    this.linefeed = 0, //0,1
    this.fontWidth = 1,
    this.fontHeight = 1,
    this.codeHeight = 40,
    this.codeWidth = 5,//二维码宽度 1~10
    this.x = 0,
    this.y = 0});