TextElement constructor

TextElement({
  1. required int x,
  2. required int y,
  3. required String text,
  4. int fontSize = 24,
  5. bool bold = false,
  6. int? width,
  7. int? height,
})

Implementation

TextElement({
  required int x,
  required int y,
  required this.text,
  this.fontSize = 24,
  this.bold = false,
  this.width,
  this.height,
}) : super(type: LabelElementType.text, x: x, y: y);