TextLayerData constructor

TextLayerData({
  1. required String text,
  2. double size = 64,
  3. Color color = 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 = white,
  this.background = Colors.transparent,
  this.backgroundOpacity = 1,
  this.align = TextAlign.left,
  Offset? offset,
  double? opacity,
  double? rotation,
  double? scale,
}) : super(
        offset: offset,
        opacity: opacity,
        rotation: rotation,
        scale: scale,
      );