LocaleSwitcher.menu constructor
const
LocaleSwitcher.menu({
A Widget to switch locale of App with DropDownMenu.
Example: online app, example code.
Implementation
const LocaleSwitcher.menu({
super.key,
this.title = 'Language:',
this.numberOfShown = 200,
this.showOsLocale = true,
this.useNLettersInsteadOfIcon = 0,
this.useEmoji = false,
this.width = 250,
this.showLeading = true,
this.shape = const CircleBorder(eccentricity: 0),
this.setLocaleCallBack,
this.multiLangForceAll = false,
this.multiLangCountries = MultiLangCountries.onlyFlag,
this.multiLangWidget,
this.iconRadius = 38,
this.specialFlagsPadding = 0,
}) : type = LocaleSwitcherType.menu,
useStaticIcon = null,
toolTipPrefix = null,
gridDelegate = null,
builder = null,
assert(!useEmoji || (useEmoji == (useNLettersInsteadOfIcon == 0)));