SuggestionController constructor

SuggestionController({
  1. double itemHeight = 100,
  2. String hashtagSymbol = '#',
  3. String mentionSymbol = '@',
  4. double containerMaxHeight = 250,
  5. List<HashTag>? initalTags,
  6. List<Mention>? intialMentions,
  7. Future<List<Mention>> onSearchMention(
    1. String
    )?,
  8. Future<List<HashTag>> onSearchTags(
    1. String
    )?,
  9. List<HashTag>? hashtagSuggestions = const [],
  10. List<Mention>? mentionSuggestions = const [],
  11. dynamic onHashTagSelected(
    1. HashTag
    )?,
  12. dynamic onMentionSelected(
    1. Mention
    )?,
  13. SuggestionPosition? position = SuggestionPosition.bottom,
  14. Widget hashTagSearchCard(
    1. HashTag
    )?,
  15. Widget mentionSearchCard(
    1. Mention
    )?,
  16. Color? borderColor,
})

Implementation

SuggestionController(
    {this.itemHeight = 100,
    this.hashtagSymbol = '#',
    this.mentionSymbol = '@',
    this.containerMaxHeight = 250,
    this.initalTags,
    this.intialMentions,
    this.onSearchMention,
    this.onSearchTags,
    this.hashtagSuggestions = const [],
    this.mentionSuggestions = const [],
    this.onHashTagSelected,
    this.onMentionSelected,
    this.position = SuggestionPosition.bottom,
    this.hashTagSearchCard,
    this.mentionSearchCard,
    this.borderColor});