FormItemDropdownButton constructor

const FormItemDropdownButton({
  1. required VoidCallback onTap,
  2. Color? backgroundColor,
  3. TextEditingController? controller,
  4. bool enabled = true,
  5. String? initialValue,
  6. bool dense = false,
  7. VoidCallback? onLongPress,
  8. 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,
});