StreamMentionAutocompleteOptions constructor
StreamMentionAutocompleteOptions({
- Key? key,
- required String query,
- required Channel channel,
- StreamChatClient? client,
- int limit = 10,
- bool mentionAllAppUsers = false,
- UserMentionTileBuilder? mentionsTileBuilder,
- ValueSetter<
User> ? onMentionUserTap,
Constructor for creating a StreamMentionAutocompleteOptions.
Implementation
StreamMentionAutocompleteOptions({
super.key,
required this.query,
required this.channel,
this.client,
this.limit = 10,
this.mentionAllAppUsers = false,
this.mentionsTileBuilder,
this.onMentionUserTap,
}) : assert(
channel.state != null,
'Channel ${channel.cid} is not yet initialized',
),
assert(
!mentionAllAppUsers || (mentionAllAppUsers && client != null),
'StreamChatClient is required in order to use mentionAllAppUsers',
);