CustomDropdownButton constructor
const
CustomDropdownButton({
- Key? key,
- required Function onChanged,
- required dynamic items,
- AlignmentDirectional alignment = AlignmentDirectional.centerStart,
- bool disabled = false,
- TextStyle? textStyle,
- Color? backgroundColor,
- Color? textColor,
- String hint = 'Select',
- String? selectedKey,
- Icon? leftIcon,
- Icon? rightIcon,
- EdgeInsets? margin,
- EdgeInsets? padding,
- int? flex,
- BorderRadius? borderRadius,
- double? width,
- double? height,
- String? firstOption,
- String? keyItemName,
Implementation
const CustomDropdownButton({
super.key,
required this.onChanged,
required this.items,
this.alignment = AlignmentDirectional.centerStart,
this.disabled = false,
this.textStyle,
this.backgroundColor,
this.textColor,
this.hint = 'Select',
this.selectedKey,
this.leftIcon,
this.rightIcon,
this.margin,
this.padding,
this.flex,
this.borderRadius,
this.width,
this.height,
this.firstOption,
this.keyItemName,
}) : assert(items is List<String> || items is List<Map<String, String>> || items is List || items is List<MapEntry> || items is Map);