TextLayerData constructor

TextLayerData({
  1. required String text,
  2. double size = 64,
  3. Color color = Colors.white,
  4. Color background = Colors.transparent,
  5. int backgroundOpacity = 1,
  6. TextAlign align = TextAlign.left,
  7. Offset? offset,
  8. double? opacity,
  9. double? rotation,
  10. double? scale,
})

Implementation

TextLayerData({
  required this.text,
  this.size = 64,
  this.color = Colors.white,
  this.background = Colors.transparent,
  this.backgroundOpacity = 1,
  this.align = TextAlign.left,
  super.offset,
  super.opacity,
  super.rotation,
  super.scale,
});