ReadMore constructor

const ReadMore(
  1. String data, {
  2. Key? key,
  3. String trimExpandedText = 'see less',
  4. String trimCollapsedText = 'see 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,
  15. TextStyle? moreStyle,
  16. TextStyle? lessStyle,
  17. String delimiter = _kEllipsis + ' ',
  18. TextStyle? delimiterStyle,
  19. dynamic callback(
    1. bool val
    )?,
})

Implementation

const ReadMore(
    this.data, {
      Key? key,
      this.trimExpandedText = 'see less',
      this.trimCollapsedText = 'see 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);