WrappedText constructor

const WrappedText({
  1. Key? key,
  2. required Widget child,
  3. WrappedTextDataBuilder<TextStyle?>? style,
  4. WrappedTextDataBuilder<TextAlign?>? textAlign,
  5. WrappedTextDataBuilder<bool?>? softWrap,
  6. WrappedTextDataBuilder<TextOverflow?>? overflow,
  7. WrappedTextDataBuilder<int?>? maxLines,
  8. WrappedTextDataBuilder<TextWidthBasis?>? textWidthBasis,
  9. WidgetTextWrapper? wrapper,
})

Creates a WrappedText.

All styling parameters are optional and use builder functions for dynamic, theme-aware styling.

Parameters:

  • child (Widget, required): Widget to apply styling to.
  • style (WrappedTextDataBuilder<TextStyle?>?, optional): Text style builder.
  • textAlign (WrappedTextDataBuilder<TextAlign?>?, optional): Text alignment builder.
  • softWrap (WrappedTextDataBuilder<bool?>?, optional): Soft wrap builder.
  • overflow (WrappedTextDataBuilder<TextOverflow?>?, optional): Overflow handling builder.
  • maxLines (WrappedTextDataBuilder<int?>?, optional): Max lines builder.
  • textWidthBasis (WrappedTextDataBuilder<TextWidthBasis?>?, optional): Text width basis builder.
  • wrapper (WidgetTextWrapper?, optional): Container wrapper function.

Implementation

const WrappedText({
  super.key,
  required this.child,
  this.style,
  this.textAlign,
  this.softWrap,
  this.overflow,
  this.maxLines,
  this.textWidthBasis,
  this.wrapper,
});