NyLanguageSwitcher constructor

NyLanguageSwitcher({
  1. Key? key,
  2. Widget? icon,
  3. Color? iconEnabledColor,
  4. Color? dropdownBgColor,
  5. dynamic onLanguageChange(
    1. Map<String, dynamic> language
    )?,
  6. Widget? hint,
  7. double itemHeight = kMinInteractiveDimension,
  8. Widget dropdownBuilder(
    1. Map<String, dynamic> language
    )?,
  9. AlignmentGeometry dropdownAlignment = AlignmentDirectional.centerStart,
  10. dynamic dropdownOnTap()?,
  11. EdgeInsetsGeometry? padding,
  12. dynamic onTap()?,
  13. BorderRadius? borderRadius,
  14. double iconSize = 24,
  15. int elevation = 8,
  16. String langPath = 'lang',
  17. TextStyle textStyle = const TextStyle(color: Colors.black),
})

Implementation

NyLanguageSwitcher(
    {Key? key,
    this.icon,
    this.iconEnabledColor,
    this.dropdownBgColor,
    this.onLanguageChange,
    this.hint,
    this.itemHeight = kMinInteractiveDimension,
    this.dropdownBuilder,
    this.dropdownAlignment = AlignmentDirectional.centerStart,
    this.dropdownOnTap,
    this.padding,
    this.onTap,
    this.borderRadius,
    this.iconSize = 24,
    this.elevation = 8,
    this.langPath = 'lang',
    this.textStyle = const TextStyle(color: Colors.black)})
    : super(key: key);