ReadMoreText constructor

const ReadMoreText(
  1. String data, {
  2. Key? key,
  3. String trimExpandedText = ' read less',
  4. String trimCollapsedText = ' ...read more',
  5. Color? colorClickableText,
  6. int trimLength = 240,
  7. int trimLines = 2,
  8. TrimMode trimMode = TrimMode.Length,
  9. TextStyle? style,
  10. TextAlign? textAlign,
  11. TextDirection? textDirection,
  12. Locale? locale,
  13. double? textScaleFactor,
  14. String? semanticsLabel,
})

Implementation

const ReadMoreText(
  this.data, {
  super.key,
  this.trimExpandedText = ' read 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,
});