EnhancedTextLayerData constructor
EnhancedTextLayerData({
- required String text,
- Color color = Colors.white,
- double size = 32.0,
- TextAlign align = TextAlign.center,
- Color background = Colors.transparent,
- double backgroundOpacity = 0.0,
- Offset offsetValue = Offset.zero,
- double rotationValue = 0.0,
- String fontFamily = 'Roboto',
- Gradient? textGradient,
- Gradient? backgroundGradient,
- String? animation,
- double animationDuration = 1.0,
- FontWeight fontWeight = FontWeight.normal,
- 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,
});