buildCustom method
Text
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
Custom builder that subclasses must override and implement to return the actual Widget to be placed on the tree.
Implementation
@override
Text buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
final model = createModel(
childBuilder: childBuilder,
data: data,
);
final dataDecoded = _decodeText(
value: model.data,
);
return Text(
dataDecoded,
key: key,
locale: model.locale,
maxLines: model.maxLines,
overflow: model.overflow,
selectionColor: model.selectionColor,
semanticsLabel: model.semanticsLabel,
softWrap: model.softWrap,
strutStyle: model.strutStyle,
style: model.style,
textAlign: model.textAlign,
textDirection: model.textDirection,
textHeightBehavior: model.textHeightBehavior,
textScaleFactor: model.textScaleFactor,
textScaler: model.textScaler,
textWidthBasis: model.textWidthBasis,
);
}