toTextWidget method

Text toTextWidget({
  1. TextAlign? textAlign,
  2. TextStyle? style,
  3. StrutStyle? strutStyle,
  4. TextDirection? textDirection,
  5. Locale? locale,
  6. bool? softWrap,
  7. TextOverflow? overflow,
  8. double? textScaleFactor,
  9. int? maxLines,
  10. String? semanticsLabel,
  11. TextWidthBasis? textWidthBasis,
  12. 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,
    );