toWidget method
Get a Flutter widget equivalent object.
Descendants must override it.
Implementation
@override
Widget toWidget() => Text(
text,
style: style?.textStyle,
strutStyle: strutStyle,
textAlign: textAlign,
textDirection: textDirection,
locale: locale,
softWrap: softWrap,
overflow: overflow,
textScaler: textScaler?.toTextScaler(),
maxLines: maxLines,
semanticsLabel: semanticsLabel,
semanticsIdentifier: semanticsIdentifier,
textWidthBasis: textWidthBasis,
textHeightBehavior: textHeightBehavior,
selectionColor: selectionColor,
);