DropdownMenuButton constructor
const
DropdownMenuButton({
- Key? key,
- required DropdownMenuButtonBuilder builder,
- required DropdownMenuButtonIndexBuilder itemBuilder,
- required int itemCount,
- ValueCallback<
int> ? onChanged, - Color? backgroundColor,
- Decoration? decoration,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 4),
- Widget? icon,
Implementation
const DropdownMenuButton(
{super.key,
required this.builder,
required this.itemBuilder,
required this.itemCount,
this.onChanged,
this.backgroundColor,
this.decoration,
this.margin,
this.padding = const EdgeInsets.symmetric(horizontal: 4),
this.icon});