MDropDown<T> constructor

MDropDown<T>({
  1. Key? key,
  2. required ValueChanged<T?> onChanged,
  3. required RetreiveTitle<T> itemTitle,
  4. bool inFill = true,
  5. Widget prefix(
    1. T? itemImage
    )?,
  6. TextStyle? titleStyle,
  7. TextStyle? hintStyle,
  8. TextStyle? optionStyle,
  9. TextStyle? selectedStyle,
  10. double? menuMaxHeight,
  11. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  12. Widget selectedItem(
    1. T? itemImage
    )?,
  13. Widget optionItem(
    1. T? itemImage
    )?,
  14. EdgeInsetsGeometry? dropdownPadding = const MPadding.set(horizontal: 21.0, vertical: 6.0),
  15. EdgeInsetsGeometry? titlePadding = const MPadding.set(vertical: 12.0),
  16. String? title,
  17. Color? titleColor,
  18. double? height,
  19. List<T> options = const [],
  20. bool removeBorder = true,
  21. bool isDense = false,
  22. String? hint = "",
  23. bool isCenter = false,
  24. T? setInitial,
  25. bool check = false,
  26. bool isExpanded = true,
  27. Color? iconColor,
  28. double? itemHeight,
  29. Color? textColor,
  30. double textSize = 20,
  31. double titleSize = 20,
  32. int elevation = 2,
  33. Color? dropdownColor,
  34. Color? borderColor,
  35. Color? hintColor,
  36. FontWeight? titleWeight,
  37. FontWeight? textWeight,
  38. Color? backgroundColor,
  39. Color? selectedItemColor,
  40. double iconSize = 12.0,
  41. double borderRadius = 5.0,
  42. bool hideDropdown = false,
})

Implementation

MDropDown({
  Key? key,
  required this.onChanged,
  required this.itemTitle,
  this.inFill = true,
  this.prefix,
  this.titleStyle,
  this.hintStyle,
  this.optionStyle,
  this.selectedStyle,
  this.menuMaxHeight,
  this.alignment = AlignmentDirectional.centerStart,
  this.selectedItem,
  this.optionItem,
  this.dropdownPadding = const MPadding.set(horizontal: 21.0, vertical: 6.0),
  this.titlePadding = const MPadding.set(vertical: 12.0),
  this.title,
  this.titleColor,
  this.height,
  this.options = const [],
  this.removeBorder = true,
  this.isDense = false,
  this.hint = "",
  this.isCenter = false,
  this.setInitial,
  this.check = false,
  this.isExpanded = true,
  this.iconColor,
  this.itemHeight,
  this.textColor,
  this.textSize = 20,
  this.titleSize = 20,
  this.elevation = 2,
  this.dropdownColor,
  this.borderColor,
  this.hintColor,
  this.titleWeight,
  this.textWeight,
  this.backgroundColor,
  this.selectedItemColor,
  this.iconSize = 12.0,
  this.borderRadius = 5.0,
  this.hideDropdown = false,
}) : super(key: key);