copyWith method

BuddyConfig copyWith({
  1. BuddyPersonality? personality,
  2. bool? enabled,
  3. bool? showTips,
  4. bool? showShortcuts,
  5. int? maxSuggestionsPerSession,
})

Implementation

BuddyConfig copyWith({
  BuddyPersonality? personality,
  bool? enabled,
  bool? showTips,
  bool? showShortcuts,
  int? maxSuggestionsPerSession,
}) {
  return BuddyConfig(
    personality: personality ?? this.personality,
    enabled: enabled ?? this.enabled,
    showTips: showTips ?? this.showTips,
    showShortcuts: showShortcuts ?? this.showShortcuts,
    maxSuggestionsPerSession:
        maxSuggestionsPerSession ?? this.maxSuggestionsPerSession,
  );
}