TextPlus constructor
TextPlus(
- String? text, {
- Key? key,
- int? maxLines,
- TextOverflow? textOverflow,
- TextAlign textAlign = TextAlign.left,
- TextDirection textDirection = TextDirection.ltr,
- Color? color = Colors.black,
- double? fontSize,
- FontWeight fontWeight = FontWeight.normal,
- FontStyle fontStyle = FontStyle.normal,
- Color? backgroundColor,
- double? letterSpacing,
- double? wordSpacing,
- double? height,
- String? fontFamily,
- String? mask,
- bool isCenter = false,
- bool isExpanded = false,
- TextDecorationPlus? textDecorationPlus,
- List<
ShadowPlus> ? textShadows, - EdgeInsets padding = EdgeInsets.zero,
- EdgeInsets margin = EdgeInsets.zero,
- dynamic onTap()?,
- dynamic onLongPress()?,
- double? width,
- BorderPlus? backgroundBorder,
- List<
ShadowPlus> ? backgroundShadows, - List<
InnerShadowPlus> ? backgroundInnerShadows, - GradientPlus? backgroundGradient,
- RadiusPlus? backgroundRadius,
Implementation
TextPlus(
this.text, {
Key? key,
this.maxLines,
this.textOverflow,
this.textAlign = TextAlign.left,
this.textDirection = TextDirection.ltr,
// style
this.color = Colors.black,
this.fontSize,
this.fontWeight = FontWeight.normal,
this.fontStyle = FontStyle.normal,
this.backgroundColor,
this.letterSpacing,
this.wordSpacing,
this.height,
this.fontFamily,
// custom
this.mask,
this.isCenter = false,
this.isExpanded = false,
this.textDecorationPlus,
this.textShadows,
this.padding = EdgeInsets.zero,
this.margin = EdgeInsets.zero,
this.onTap,
this.onLongPress,
this.width,
this.backgroundBorder,
this.backgroundShadows,
this.backgroundInnerShadows,
this.backgroundGradient,
this.backgroundRadius,
}) : super(key: key);