widget method

Widget widget(
  1. BuildContext context
)
override

Implementation

widget(context) {
  if (style?.themeBuilder == null) return _widget;

  final theme = style!.themeBuilder!(context);
  if (theme == null) return _widget;

  final mergedTheme = theme.asNiku..apply = this.style;

  return Text(
    text ?? "",
    key: key,
    style: mergedTheme.value,
    strutStyle: this.strutStyle?.value,
    textAlign: this.textAlign,
    textDirection: this.textDirection,
    locale: this.locale,
    softWrap: this.softWrap,
    overflow: this.overflow,
    textScaleFactor: this.textScaleFactor,
    maxLines: this.maxLines,
    semanticsLabel: this.semanticsLabel,
    textWidthBasis: this.textWidthBasis,
    textHeightBehavior: this.textHeightBehavior,
  );
}