copyWith method

CardGenerationState copyWith({
  1. List<CardProposal>? proposals,
  2. bool? isGenerating,
  3. String? error,
  4. 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,
  );
}