copyWith method

Counterparty copyWith({
  1. String? name,
  2. CounterpartyType? type,
})

Implementation

Counterparty copyWith({String? name, enums.CounterpartyType? type}) {
  return Counterparty(name: name ?? this.name, type: type ?? this.type);
}