getLocalizedLabel method

String? getLocalizedLabel(
  1. PassFile pass,
  2. Locale? locale
)

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;
}