LangSwitch constructor

const LangSwitch({
  1. Key? key,
  2. required dynamic onChange(
    1. Locale
    ),
  3. required List<Locale> locales,
  4. String flagUrl(
    1. Locale
    )?,
  5. String langName(
    1. Locale
    )?,
  6. bool showFlag = true,
  7. bool showFullName = true,
  8. bool hideSelected = true,
  9. bool persist = true,
})

Implementation

const LangSwitch({
  Key? key,
  required this.onChange,
  required this.locales,
  this.flagUrl,
  this.langName,
  this.showFlag: true,
  this.showFullName: true,
  this.hideSelected: true,
  this.persist: true,
})  : assert(locales.length != 0, "Locales must not be empty"),
      super(key: key);