copyWithStyle method

WrappedText copyWithStyle(
  1. WrappedTextDataBuilder<TextStyle> style
)

Implementation

WrappedText copyWithStyle(WrappedTextDataBuilder<TextStyle> style) {
  return WrappedText(
    style: (context, theme) =>
        style(context, theme).merge(this.style?.call(context, theme)),
    textAlign: textAlign,
    softWrap: softWrap,
    overflow: overflow,
    maxLines: maxLines,
    textWidthBasis: textWidthBasis,
    child: child,
  );
}