TextWidget constructor

TextWidget(
  1. String? text, {
  2. Key? key,
  3. WidgetBuilder? errorBuild,
  4. bool? notShowNullStr,
  5. InlineSpan? textSpan,
  6. TextStyle? style,
  7. StrutStyle? strutStyle,
  8. TextAlign? textAlign,
  9. TextDirection? textDirection,
  10. Locale? locale,
  11. bool? softWrap,
  12. TextOverflow overflow = TextOverflow.ellipsis,
  13. double? textScaleFactor,
  14. int? maxLines,
  15. String? semanticsLabel,
  16. TextWidthBasis? textWidthBasis,
  17. TextHeightBehavior? textHeightBehavior,
  18. double? width,
  19. double? height,
  20. VoidCallback? onPressed,
  21. VoidCallback? onLongPress,
  22. bool? visible,
  23. bool? isClipOval,
  24. double? radius,
  25. dynamic transformBuilder(
    1. BuildContext context,
    2. Widget current
    )?,
  26. AlignmentGeometry? alignment,
  27. EdgeInsetsGeometry? padding,
  28. Color? color,
  29. Decoration? decoration,
  30. Decoration? foregroundDecoration,
  31. BoxConstraints? constraints,
  32. EdgeInsetsGeometry? margin,
  33. Matrix4? transform,
  34. AlignmentGeometry? transformAlignment,
  35. Clip clipBehavior = Clip.none,
  36. Color? backgroundColor,
  37. Map<String, dynamic>? extra,
})

Implementation

TextWidget(
  this.text, {
  Key? key,
  this.errorBuild,
  this.notShowNullStr,

  ///Text
  this.textSpan,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow = TextOverflow.ellipsis,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,

  ///Base
  this.width,
  this.height,
  this.onPressed,
  this.onLongPress,
  this.visible,
  this.isClipOval,
  this.radius,
  this.transformBuilder,
  this.alignment,
  this.padding,
  this.color,
  this.decoration,
  this.foregroundDecoration,
  this.constraints,
  this.margin,
  this.transform,
  this.transformAlignment,
  this.clipBehavior = Clip.none,
  this.backgroundColor,
  this.extra,
}) : super(
        key: key,
        width: width,
        height: height,
        errorBuild: errorBuild,
        onPressed: onPressed,
        onLongPress: onLongPress,
        visible: visible,
        isClipOval: isClipOval,
        radius: radius,
        transformBuilder: transformBuilder,
        alignment: alignment,
        padding: padding,
        color: color,
        decoration: decoration,
        foregroundDecoration: foregroundDecoration,
        constraints: constraints,
        margin: margin,
        transform: transform,
        transformAlignment: transformAlignment,
        clipBehavior: clipBehavior,
        extra: extra,
      );