getLocalizedLabel method
Localized version of label based on given locale
and pass
.
Implementation
String? getLocalizedLabel(PassFile pass, Locale? locale) {
final localizations = pass.getLocalizations(locale);
return localizations?[label] ?? label;
}