copyWith method

TenhoConviteState copyWith({
  1. String? codigo,
  2. bool? menor,
  3. bool? busy,
  4. String? erro,
  5. bool limparErro = false,
  6. bool? concluido,
})

Implementation

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