onMention property

(Future<List<Widget>> Function(String trigger, String value, void onMentionClick(String value))?) onMention
final

Function to call when a mention is triggered in the input, ie: typing ' @' You need to return a list of widget that will be shown inside the selection overlay, for instance user ListTiles

Implementation

final Future<List<Widget>> Function(String trigger, String value,
    void Function(String value) onMentionClick)? onMention;