Suggestion constructor

Suggestion(
  1. String label,
  2. String value, {
  3. bool isRecentSearch = false,
  4. Map? source,
  5. int? clickId,
  6. bool isPopularSuggestion = false,
})

Implementation

Suggestion(this.label, this.value,
    {this.isRecentSearch = false,
    this.source,
    this.clickId,
    this.isPopularSuggestion = false}) {
  this.isPopularSuggestion =
      this.source != null && this.source!['_popular_suggestion'] == true;
}