TextWidget constructor
TextWidget(
- String? text, {
- Key? key,
- WidgetBuilder? errorBuild,
- bool? notShowNullStr,
- InlineSpan? textSpan,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow overflow = TextOverflow.ellipsis,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- double? width,
- double? height,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- bool? visible,
- bool? isClipOval,
- double? radius,
- dynamic transformBuilder(
- BuildContext context,
- Widget current
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- Clip clipBehavior = Clip.none,
- Color? backgroundColor,
- 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,
);