MentionText constructor
const
MentionText(
- String text, {
- required List<
MentionModel> mentions, - TextOverflow overflow = TextOverflow.clip,
- ValueChanged<
MentionModel> ? onMentionTap, - TextStyle? style,
- TextStyle? mentionStyle,
- int? maxLines,
- Key? key,
Highlight mentions in text.
Displays text
which contains mentions.
Implementation
const MentionText(
this.text, {
required this.mentions,
this.overflow = TextOverflow.clip,
this.onMentionTap,
this.style,
this.mentionStyle,
this.maxLines,
super.key,
});