softWrap property

  1. @override
bool softWrap
override

Whether the text should break at soft line breaks.

If false, the glyphs in the text will be positioned as if there was unlimited horizontal space.

If softWrap is false, overflow and textAlign may have unexpected effects.

Implementation

@override
bool get softWrap => _softWrap;
  1. @override
void softWrap=(bool value)
override

Implementation

@override
set softWrap(bool value) {
  if (_softWrap == value) return;
  _softWrap = value;
  markNeedsLayout();
}