copyWithStyle method

VText copyWithStyle(
  1. TextStyle style
)

Returns a copy with merged style.

Implementation

VText copyWithStyle(TextStyle style) => VText(
  data,
  style: _style.merge(style),
  align: _align,
  maxLines: _maxLines,
  overflow: _overflow,
  textScaler: _textScaler,
  strutStyle: strutStyle,
  textDirection: textDirection,
  locale: locale,
  softWrap: softWrap,
  semanticsLabel: semanticsLabel,
  semanticsIdentifier: semanticsIdentifier,
  textWidthBasis: textWidthBasis,
  textHeightBehavior: textHeightBehavior,
  selectionColor: selectionColor,
);