MentionTextEditingController constructor

MentionTextEditingController({
  1. TextEditingController? controllerToCopyTo,
  2. required List<MentionSyntax> mentionSyntaxes,
  3. SuggestionCallback? onSuggestionChanged,
  4. Color? mentionBgColor,
  5. Color? mentionTextColor,
  6. TextStyle? mentionTextStyle,
  7. TextStyle? runTextStyle,
  8. required IdToMentionCallback idToMentionObject,
  9. String? text,
})

Implementation

MentionTextEditingController({
  this.controllerToCopyTo,
  required this.mentionSyntaxes,
  SuggestionCallback? onSuggestionChanged,
  this.mentionBgColor,
  this.mentionTextColor,
  this.mentionTextStyle,
  this.runTextStyle,
  required this.idToMentionObject,
  super.text,
}) {
  _init();

  if (onSuggestionChanged != null) {
    addSuggestionListener(onSuggestionChanged);
  }
}