ReadMoreTextEnhanced constructor

const ReadMoreTextEnhanced(
  1. String data, {
  2. Key? key,
  3. ValueNotifier<bool>? isCollapsed,
  4. String? preDataText,
  5. String? postDataText,
  6. TextStyle? preDataTextStyle,
  7. TextStyle? postDataTextStyle,
  8. String trimExpandedText = 'show less',
  9. String trimCollapsedText = 'read more',
  10. Color? colorClickableText,
  11. int trimLength = 240,
  12. int trimLines = 2,
  13. TrimMode trimMode = TrimMode.length,
  14. TextStyle? moreStyle,
  15. TextStyle? lessStyle,
  16. String delimiter = '$_kEllipsis ',
  17. TextStyle? delimiterStyle,
  18. List<Annotation>? annotations,
  19. bool isExpandable = true,
  20. TextStyle? style,
  21. StrutStyle? strutStyle,
  22. TextAlign? textAlign,
  23. TextDirection? textDirection,
  24. Locale? locale,
  25. bool? softWrap,
  26. TextOverflow? overflow,
  27. TextScaler? textScaler,
  28. String? semanticsLabel,
  29. TextWidthBasis? textWidthBasis,
  30. TextHeightBehavior? textHeightBehavior,
  31. Color? selectionColor,
})

Implementation

const ReadMoreTextEnhanced(
  String this.data, {
  super.key,
  this.isCollapsed,
  this.preDataText,
  this.postDataText,
  this.preDataTextStyle,
  this.postDataTextStyle,
  this.trimExpandedText = 'show less',
  this.trimCollapsedText = 'read more',
  this.colorClickableText,
  this.trimLength = 240,
  this.trimLines = 2,
  this.trimMode = TrimMode.length,
  this.moreStyle,
  this.lessStyle,
  this.delimiter = '$_kEllipsis ',
  this.delimiterStyle,
  this.annotations,
  this.isExpandable = true,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaler,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.selectionColor,
})  : richData = null,
      richPreData = null,
      richPostData = null;