FormItemDropdownButton constructor
const
FormItemDropdownButton({
- required VoidCallback onTap,
- Color? backgroundColor,
- TextEditingController? controller,
- bool enabled = true,
- String? initialValue,
- bool dense = false,
- VoidCallback? onLongPress,
- Decoration? decoration,
Widget that displays a dropdown button and generates an action when tapped.
onTap: Action when tapped. onLongPress: Action when long pressed. controller: Text edit controller. initialValue: First value. decoration: Input form decoration. dense: True for dense. backgroundColor: Background color.
Implementation
const FormItemDropdownButton({
required this.onTap,
this.backgroundColor,
this.controller,
this.enabled = true,
this.initialValue,
this.dense = false,
this.onLongPress,
this.decoration,
});