toString method

  1. @override
String toString()
override

Returns a string representation of the ExchangeRate instance.

The string contains the type name and the value and unit of the exchange rate.

Implementation

@override
String toString() {
  return '${Helpers.getTypeName(ExchangeRate)}: value = $value, unit = $unit';
}