ofLocale method
Returns the localized display name for a given language locale.
The resulting name is formatted according to the options configured in the constructor.
Example:
import 'package:intl4x/display_names.dart';
void main() {
print(DisplayNames.ofLocale(Locale.parse('de'))); // Prints 'German'
}
Implementation
String ofLocale(Locale locale) => _of(locale, _impl.ofLocale);