JJText constructor

JJText(
  1. String data, {
  2. Key? key,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign? textAlign,
  6. TextDirection? textDirection,
  7. Locale? locale,
  8. bool? softWrap,
  9. TextOverflow? overflow,
  10. double? textScaleFactor,
  11. int? maxLines,
  12. String? semanticsLabel,
  13. TextWidthBasis? textWidthBasis,
  14. TextHeightBehavior? textHeightBehavior,
  15. double? richWidth,
  16. double? richHeight,
  17. Clip textClipBehavior = Clip.none,
  18. AlignmentGeometry? alignment,
  19. EdgeInsetsGeometry? padding,
  20. Color? color,
  21. Decoration? decoration,
  22. Decoration? foregroundDecoration,
  23. double? width,
  24. double? height,
  25. BoxConstraints? constraints,
  26. EdgeInsetsGeometry? margin,
  27. Matrix4? transform,
  28. AlignmentGeometry? transformAlignment,
  29. Widget? child,
  30. Clip clipBehavior = Clip.none,
  31. int tag = 0,
  32. bool isSelected = false,
  33. bool enabled = true,
  34. void onTap()?,
})

Implementation

JJText(
  this.data, {
  Key? key,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.richWidth,
  this.richHeight,
  this.textClipBehavior = Clip.none,


  ///container
  this.alignment,
  this.padding,
  this.color,
  this.decoration,
  this.foregroundDecoration,
  this.width,
  this.height,
  this.constraints,
  this.margin,
  this.transform,
  this.transformAlignment,
  this.child,
  this.clipBehavior = Clip.none,

  this.tag = 0,
  this.isSelected = false,
  this.enabled = true,
  this.onTap,
}) : super(key: key);