RenderTextToHtml constructor
RenderTextToHtml(
- String text,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- Color? selectionColor,
- String? tag,
- 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);
}
}