styled method

Text styled(
  1. TextStyle style
)

Returns a new Text widget with the given style, preserving other properties.

Implementation

Text styled(TextStyle style) {
  return Text(
    data ?? '',
    key: key,
    style: style,
    strutStyle: strutStyle,
    textAlign: textAlign,
    textDirection: textDirection,
    locale: locale,
    softWrap: softWrap,
    overflow: overflow,
    textScaler: textScaler,
    maxLines: maxLines,
    semanticsLabel: semanticsLabel,
    textWidthBasis: textWidthBasis,
    textHeightBehavior: textHeightBehavior,
  );
}