copyWith method

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

Implementation

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