StreamMentionAutocompleteOptions constructor

StreamMentionAutocompleteOptions({
  1. Key? key,
  2. required String query,
  3. required Channel channel,
  4. StreamChatClient? client,
  5. int limit = 10,
  6. bool mentionAllAppUsers = false,
  7. UserMentionTileBuilder? mentionsTileBuilder,
  8. 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',
      );