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(
    transparent: (_) => const LocalizationStrings.transparent(),
    circle: (_) => const LocalizationStrings.circle(),
  );

  return LocalizationStrings.applyLanguageCode(localization, languageCode);
}