CustomDropDownButtonItem<T> constructor
CustomDropDownButtonItem<T> ({
- required String text,
- required VoidCallback? onPressed,
- required T value,
- Key? key,
- double iconSpacing = 8,
- bool enabled = true,
- TextAlign textAlign = TextAlign.start,
- Widget? icon,
- TextStyle? textStyle,
- ButtonStyle? buttonStyle,
- EdgeInsets? margin,
Creates a CustomDropDownButtonItem with the provided properties.
The text, onPressed, and value parameters are required.
Implementation
CustomDropDownButtonItem({
required this.text,
required this.onPressed,
required this.value,
this.key,
this.iconSpacing = 8,
this.enabled = true,
this.textAlign = TextAlign.start,
this.icon,
this.textStyle,
this.buttonStyle,
this.margin,
});