MentionTextEditingController constructor
MentionTextEditingController({
- TextEditingController? controllerToCopyTo,
- required List<
MentionSyntax> mentionSyntaxes, - SuggestionCallback? onSuggestionChanged,
- Color? mentionBgColor,
- Color? mentionTextColor,
- TextStyle? mentionTextStyle,
- TextStyle? runTextStyle,
- required IdToMentionCallback idToMentionObject,
- 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);
}
}