CustomText constructor

const CustomText(
  1. String text, {
  2. Key? key,
  3. required double width,
  4. int? offset,
  5. String? overflowtext,
  6. TextStyle? style,
  7. StrutStyle? strutStyle,
  8. TextAlign? textAlign,
  9. TextDirection? textDirection,
  10. Locale? locale,
  11. bool? softWrap,
  12. TextOverflow? overflow,
  13. double? textScaleFactor,
  14. int? maxLines,
  15. String? semanticsLabel,
  16. TextWidthBasis? textWidthBasis,
  17. TextHeightBehavior? textHeightBehavior,
})

Implementation

const CustomText(
  this.text, {
  Key? key,
  required this.width,
  this.offset,
  this.overflowtext,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
}) : super(key: key);