RenderTextToHtml constructor

RenderTextToHtml(
  1. String text,
  2. TextStyle? style,
  3. StrutStyle? strutStyle,
  4. TextAlign? textAlign,
  5. TextDirection? textDirection,
  6. Locale? locale,
  7. bool? softWrap,
  8. TextOverflow? overflow,
  9. double? textScaleFactor,
  10. int? maxLines,
  11. String? semanticsLabel,
  12. TextWidthBasis? textWidthBasis,
  13. TextHeightBehavior? textHeightBehavior,
  14. Color? selectionColor,
  15. String? tag,
  16. String? href,
)

Implementation

RenderTextToHtml(
  this.text,
  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.selectionColor,
  this.tag,
  this.href,
) {
  if (tag == null) {
    element = html.Element.tag("span");
  }
  if (tag != null) {
    element = html.Element.tag(tag as String);
  }
}