toString method
Returns a string representation of the currency.
This method overrides the toString
method to return a user-friendly string
that provides the currency's code, numeric code, number of decimal digits,
currency name, and the list of locations.
Example:
print(usd.toString()); // Output: ISO4217Currency(code: USD, numCode: 840, digits: 2, currencyName: United States Dollar, locations: [United States, American Samoa, British Virgin Islands])
Implementation
@override
String toString() {
return 'ISO4217Currency(code: $code, numCode: $numCode, digits: $digits, currencyName: $currencyName, locations: $locations)';
}