toLabel method

  1. @override
String toLabel([
  1. String languageCode = 'en'
])
override

based on languageCode and LocalizationStrings returns the label

Implementation

@override
String toLabel([String languageCode = 'en']) {
  final localization = when(
    default0: () => const LocalizationStrings.default0(),
  );

  return LocalizationStrings.applyLanguageCode(localization, languageCode);
}