LMChatExpandableText constructor

const LMChatExpandableText(
  1. String text, {
  2. Key? key,
  3. required String expandText,
  4. String? collapseText,
  5. bool expanded = false,
  6. ValueChanged<bool>? onExpandedChanged,
  7. VoidCallback? onLinkTap,
  8. Color? linkColor,
  9. bool linkEllipsis = true,
  10. TextStyle? linkStyle,
  11. String? prefixText,
  12. TextStyle? prefixStyle,
  13. VoidCallback? onPrefixTap,
  14. TextStyle? urlStyle,
  15. StringCallback? onUrlTap,
  16. TextStyle? hashtagStyle,
  17. StringCallback? onHashtagTap,
  18. TextStyle? mentionStyle,
  19. StringCallback? onMentionTap,
  20. bool expandOnTextTap = false,
  21. bool collapseOnTextTap = false,
  22. TextStyle? style,
  23. TextDirection? textDirection,
  24. TextAlign? textAlign,
  25. double? textScaleFactor,
  26. int maxLines = 3,
  27. bool animation = false,
  28. Duration? animationDuration,
  29. Curve? animationCurve,
  30. String? semanticsLabel,
  31. required dynamic onTagTap(
    1. String
    ),
  32. bool enableSelection = true,
})

Implementation

const LMChatExpandableText(
  this.text, {
  Key? key,
  required this.expandText,
  this.collapseText,
  this.expanded = false,
  this.onExpandedChanged,
  this.onLinkTap,
  this.linkColor,
  this.linkEllipsis = true,
  this.linkStyle,
  this.prefixText,
  this.prefixStyle,
  this.onPrefixTap,
  this.urlStyle,
  this.onUrlTap,
  this.hashtagStyle,
  this.onHashtagTap,
  this.mentionStyle,
  this.onMentionTap,
  this.expandOnTextTap = false,
  this.collapseOnTextTap = false,
  this.style,
  this.textDirection,
  this.textAlign,
  this.textScaleFactor,
  this.maxLines = 3,
  this.animation = false,
  this.animationDuration,
  this.animationCurve,
  this.semanticsLabel,
  required this.onTagTap,
  this.enableSelection = true,
})  : assert(maxLines > 0),
      super(key: key);