copy method

Suggestion<T> copy({
  1. T? suggestion,
  2. String? highlightText,
})

Implementation

Suggestion<T> copy({
  T? suggestion,
  String? highlightText,
}) {
  return Suggestion._(
    item: suggestion ?? this.item,
    highlightText: highlightText ?? this.highlightText,
  );
}