copyWith method
Implementation
ContaState copyWith({
bool? busy,
String? erro,
bool limparErro = false,
bool? saiu,
}) => ContaState(
busy: busy ?? this.busy,
erro: limparErro ? null : (erro ?? this.erro),
saiu: saiu ?? this.saiu,
);
ContaState copyWith({
bool? busy,
String? erro,
bool limparErro = false,
bool? saiu,
}) => ContaState(
busy: busy ?? this.busy,
erro: limparErro ? null : (erro ?? this.erro),
saiu: saiu ?? this.saiu,
);