copyWithCompanion method

CurrencyData copyWithCompanion(
  1. CurrencyCompanion data
)

Implementation

CurrencyData copyWithCompanion(CurrencyCompanion data) {
  return CurrencyData(
    id: data.id.present ? data.id.value : this.id,
    symbol: data.symbol.present ? data.symbol.value : this.symbol,
    name: data.name.present ? data.name.value : this.name,
    description: data.description.present
        ? data.description.value
        : this.description,
  );
}