toTextWidget method
Text
toTextWidget({
- TextAlign? textAlign,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
converts string to text widget
Implementation
Text toTextWidget({
TextAlign? textAlign,
TextStyle? style,
StrutStyle? strutStyle,
TextDirection? textDirection,
Locale? locale,
bool? softWrap,
TextOverflow? overflow,
double? textScaleFactor,
int? maxLines,
String? semanticsLabel,
TextWidthBasis? textWidthBasis,
ui.TextHeightBehavior? textHeightBehavior,
}) =>
Text(
this ?? '',
textAlign: textAlign,
style: style,
strutStyle: strutStyle,
textDirection: textDirection,
locale: locale,
softWrap: softWrap,
overflow: overflow,
textScaleFactor: textScaleFactor,
maxLines: maxLines,
semanticsLabel: semanticsLabel,
textHeightBehavior: textHeightBehavior,
textWidthBasis: textWidthBasis,
);