LangIconWithToolTip.forIconBuilder constructor

const LangIconWithToolTip.forIconBuilder(
  1. LocaleName? localeNameFlag,
  2. bool _, {
  3. Key? key,
  4. String toolTipPrefix = '',
  5. double? radius,
  6. int useNLettersInsteadOfIcon = 0,
  7. ShapeBorder? shape = const CircleBorder(eccentricity: 0),
  8. Widget? child,
  9. String? langCode,
  10. bool useEmoji = false,
  11. MultiLangCountries multiLangCountries = MultiLangCountries.auto,
  12. bool multiLangForceAll = false,
  13. double specialFlagsPadding = 3.5,
  14. MultiLangBuilder? multiLangWidget,
})

Just a shortcut to use as tear-off in builders of widgets that generate lists of elements.

See example for LocaleSwitcher.custom.

Implementation

const LangIconWithToolTip.forIconBuilder(
  this.localeNameFlag,
  bool _, {
  super.key,
  this.toolTipPrefix = '',
  this.radius,
  this.useNLettersInsteadOfIcon = 0,
  this.shape = const CircleBorder(eccentricity: 0),
  this.child,
  this.langCode,
  this.useEmoji = false,
  this.multiLangCountries = MultiLangCountries.auto,
  this.multiLangForceAll = false,
  this.specialFlagsPadding = 3.5,
  this.multiLangWidget,
});