LocaleSelector constructor

const LocaleSelector({
  1. Key? key,
  2. required List<Locale> locales,
  3. Map<String, String> labels = const {},
  4. LocalizationManager? manager,
  5. void onLocaleChanged(
    1. Locale
    )?,
})

A wrapping row of tappable labels, one per entry of locales, that switch manager (the nearest LocalizationScope's when null); builds nothing when there is no manager.

Implementation

const LocaleSelector({
  super.key,
  required this.locales,
  this.labels = const {},
  this.manager,
  this.onLocaleChanged,
});