copyWith method

AutoCompleteSuggestion copyWith({
  1. String? displayName,
  2. String? value,
})

Implementation

AutoCompleteSuggestion copyWith({String? displayName, String? value}) {
  return AutoCompleteSuggestion(
    displayName: displayName ?? this.displayName,
    value: value ?? this.value,
  );
}