clear method

void clear({
  1. List<HashTag>? hash,
  2. List<Mention>? people,
  3. bool load = false,
})

Implementation

void clear({List<HashTag>? hash, List<Mention>? people, bool load = false}) {
  loading = load;
  suggestions = people ?? [];
  hashtags = hash ?? [];
  suggestionHeight = load
      ? containerMaxHeight
      : people != null
          ? (itemHeight * people.length).clamp(0, containerMaxHeight)
          : hash != null
              ? (itemHeight * hash.length).clamp(0, containerMaxHeight)
              : 1.0;
}