LMChatExpandableText constructor
const
LMChatExpandableText(
- String text, {
- Key? key,
- required String expandText,
- String? collapseText,
- bool expanded = false,
- ValueChanged<
bool> ? onExpandedChanged, - VoidCallback? onLinkTap,
- Color? linkColor,
- bool linkEllipsis = true,
- TextStyle? linkStyle,
- String? prefixText,
- TextStyle? prefixStyle,
- VoidCallback? onPrefixTap,
- TextStyle? urlStyle,
- StringCallback? onUrlTap,
- TextStyle? hashtagStyle,
- StringCallback? onHashtagTap,
- TextStyle? mentionStyle,
- StringCallback? onMentionTap,
- bool expandOnTextTap = false,
- bool collapseOnTextTap = false,
- TextStyle? style,
- TextDirection? textDirection,
- TextAlign? textAlign,
- double? textScaleFactor,
- int maxLines = 3,
- bool animation = false,
- Duration? animationDuration,
- Curve? animationCurve,
- String? semanticsLabel,
- required dynamic onTagTap(),
- 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);