copyWith method

ContaState copyWith({
  1. bool? busy,
  2. String? erro,
  3. bool limparErro = false,
  4. bool? saiu,
})

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,
);