copyWith method

Implementation

WrappedText copyWith({
  ValueGetter<WrappedTextDataBuilder<TextStyle>?>? style,
  ValueGetter<WrappedTextDataBuilder<TextAlign>?>? textAlign,
  ValueGetter<WrappedTextDataBuilder<bool>?>? softWrap,
  ValueGetter<WrappedTextDataBuilder<TextOverflow>?>? overflow,
  ValueGetter<WrappedTextDataBuilder<int>?>? maxLines,
  ValueGetter<WrappedTextDataBuilder<TextWidthBasis>?>? textWidthBasis,
  ValueGetter<WidgetTextWrapper?>? wrapper,
  ValueGetter<Widget>? child,
}) {
  return WrappedText(
    wrapper: wrapper == null ? this.wrapper : wrapper(),
    style: style == null ? this.style : style(),
    textAlign: textAlign == null ? this.textAlign : textAlign(),
    softWrap: softWrap == null ? this.softWrap : softWrap(),
    overflow: overflow == null ? this.overflow : overflow(),
    maxLines: maxLines == null ? this.maxLines : maxLines(),
    textWidthBasis:
        textWidthBasis == null ? this.textWidthBasis : textWidthBasis(),
    child: child == null ? this.child : child(),
  );
}