copyWith method
BuddyConfig
copyWith({
- BuddyPersonality? personality,
- bool? enabled,
- bool? showTips,
- bool? showShortcuts,
- 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,
);
}