copyWith method
- List<
CardProposal> ? proposals, - bool? isGenerating,
- String? error,
- bool? isSaving,
Implementation
CardGenerationState copyWith({
List<CardProposal>? proposals,
bool? isGenerating,
String? error,
bool? isSaving,
}) {
return CardGenerationState(
proposals: proposals ?? this.proposals,
isGenerating: isGenerating ?? this.isGenerating,
error: error,
isSaving: isSaving ?? this.isSaving,
);
}