WrappedText constructor
const
WrappedText({
- Key? key,
- required Widget child,
- WrappedTextDataBuilder<
TextStyle?> ? style, - WrappedTextDataBuilder<
TextAlign?> ? textAlign, - WrappedTextDataBuilder<
bool?> ? softWrap, - WrappedTextDataBuilder<
TextOverflow?> ? overflow, - WrappedTextDataBuilder<
int?> ? maxLines, - WrappedTextDataBuilder<
TextWidthBasis?> ? textWidthBasis, - 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,
});