convertTo method

Money convertTo(
  1. String newCurrency, {
  2. double exchangeRate = 1.0,
})

Convert to another currency (simplified - would need real exchange rates)

Implementation

Money convertTo(String newCurrency, {double exchangeRate = 1.0}) {
  return Money(
    amount: amount * exchangeRate,
    currency: newCurrency,
  );
}