EnhancedTextLayerData constructor

EnhancedTextLayerData({
  1. required String text,
  2. Color color = Colors.white,
  3. double size = 32.0,
  4. TextAlign align = TextAlign.center,
  5. Color background = Colors.transparent,
  6. double backgroundOpacity = 0.0,
  7. Offset offsetValue = Offset.zero,
  8. double rotationValue = 0.0,
  9. String fontFamily = 'Roboto',
  10. Gradient? textGradient,
  11. Gradient? backgroundGradient,
  12. String? animation,
  13. double animationDuration = 1.0,
  14. FontWeight fontWeight = FontWeight.normal,
  15. bool isItalic = false,
})

Implementation

EnhancedTextLayerData({
  required this.text,
  this.color = Colors.white,
  this.size = 32.0,
  this.align = TextAlign.center,
  this.background = Colors.transparent,
  this.backgroundOpacity = 0.0,
  this.offsetValue = Offset.zero,
  this.rotationValue = 0.0,
  this.fontFamily = 'Roboto',
  this.textGradient,
  this.backgroundGradient,
  this.animation,
  this.animationDuration = 1.0,
  this.fontWeight = FontWeight.normal,
  this.isItalic = false,
});