getPreferredValueForLocales method
- List<
Locale> locales
Returns best name or title to be presented to the user according to specified locales.
The locales are expected to be ordered by priority.
If no matching locale found - the default is returned.
In case of empty list returns null.
localesLocales that will be used to translate name or title.
Returns String?. Returns best name or title to be presented to the user according to specified locales.
Implementation
String? getPreferredValueForLocales(List<Locale> locales) => $prototype.getPreferredValueForLocales(this, locales);