StacText constructor

StacText({
  1. required String data,
  2. List<StacTextSpan> children = const [],
  3. StacTextStyle? style,
  4. StacTextAlign? textAlign,
  5. StacTextDirection? textDirection,
  6. bool? softWrap,
  7. StacTextOverflow? overflow,
  8. double? textScaleFactor,
  9. int? maxLines,
  10. String? semanticsLabel,
  11. StacTextWidthBasis? textWidthBasis,
  12. 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,
});