StacText constructor
StacText({
- required String data,
- List<
StacTextSpan> children = const [], - StacTextStyle? style,
- StacTextAlign? textAlign,
- StacTextDirection? textDirection,
- bool? softWrap,
- StacTextOverflow? overflow,
- double? textScaleFactor,
- int? maxLines,
- String? semanticsLabel,
- StacTextWidthBasis? textWidthBasis,
- StacColor? selectionColor,
Creates a text widget with the given text data and optional styling.
Implementation
StacText({
required this.data,
this.children = const [],
this.style,
this.textAlign,
this.textDirection,
this.softWrap,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
this.textWidthBasis,
this.selectionColor,
});