copyWith method

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

Implementation

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