toWidget method
Implementation
@override
SelectableText toWidget(AnyWidgetContext context) {
return SelectableText(
data,
key: key?.toFlutter(context),
style: style?.toFlutter(context),
strutStyle: strutStyle?.toFlutter(context),
textAlign: textAlign?.toFlutter(context),
textDirection: textDirection?.toFlutter(context),
textScaleFactor: textScaleFactor,
showCursor: showCursor ?? false,
autofocus: autofocus ?? false,
minLines: minLines,
maxLines: maxLines,
cursorWidth: cursorWidth ?? 2.0,
cursorHeight: cursorHeight,
cursorRadius: cursorRadius?.toFlutter(context),
cursorColor: cursorColor?.toFlutter(context),
enableInteractiveSelection: enableInteractiveSelection ?? true,
semanticsLabel: semanticsLabel,
textHeightBehavior: textHeightBehavior?.toFlutter(context),
textWidthBasis: textWidthBasis?.toFlutter(context),
);
}