getDisplayName abstract method

String getDisplayName([
  1. Locale? locale
])

Returns the display name, optionally localized by locale.

Falls back to the English display name if no locale-specific version exists.

Example:

final usd = Currency.getInstance('USD');
print(usd.getDisplayName()); // US Dollar
print(usd.getDisplayName(Locale('es', 'ES'))); // Dólar estadounidense
print(usd.getDisplayName(Locale('zh', 'CN'))); // 美元

Implementation

String getDisplayName([Locale? locale]);