ReadMoreText constructor

const ReadMoreText(
  1. String data, {
  2. Key? key,
  3. String? preDataText,
  4. String? postDataText,
  5. TextStyle? preDataTextStyle,
  6. TextStyle? postDataTextStyle,
  7. String trimExpandedText = 'show less',
  8. String trimCollapsedText = 'read more',
  9. Color? colorClickableText,
  10. int trimLength = 240,
  11. int trimLines = 2,
  12. TrimMode trimMode = TrimMode.Length,
  13. TextStyle? style,
  14. TextAlign? textAlign,
  15. TextDirection? textDirection,
  16. Locale? locale,
  17. double? textScaleFactor,
  18. String? semanticsLabel,
  19. TextStyle? moreStyle,
  20. TextStyle? lessStyle,
  21. String delimiter = _kEllipsis + ' ',
  22. TextStyle? delimiterStyle,
  23. dynamic callback(
    1. bool val
    )?,
})

Implementation

const ReadMoreText(
  this.data, {
  Key? key,
  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.style,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.textScaleFactor,
  this.semanticsLabel,
  this.moreStyle,
  this.lessStyle,
  this.delimiter = _kEllipsis + ' ',
  this.delimiterStyle,
  this.callback,
}) : super(key: key);