MentionText constructor

const MentionText(
  1. String text, {
  2. required List<MentionModel> mentions,
  3. TextOverflow overflow = TextOverflow.clip,
  4. ValueChanged<MentionModel>? onMentionTap,
  5. TextStyle? style,
  6. TextStyle? mentionStyle,
  7. int? maxLines,
  8. 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,
});