copyWith method

ElginResponse copyWith({
  1. String? funcao,
  2. String? mensagem,
  3. ElginTransactionResponse? transaction,
  4. int? resultCode,
})

Implementation

ElginResponse copyWith({
  String? funcao,
  String? mensagem,
  ElginTransactionResponse? transaction,
  int? resultCode,
}) {
  return ElginResponse(
    funcao: funcao ?? this.funcao,
    mensagem: mensagem ?? this.mensagem,
    transaction: transaction ?? this.transaction,
    resultCode: resultCode ?? this.resultCode,
  );
}