DropdownMenuButton constructor

const DropdownMenuButton({
  1. Key? key,
  2. required DropdownMenuButtonBuilder builder,
  3. required DropdownMenuButtonIndexBuilder itemBuilder,
  4. required int itemCount,
  5. ValueCallback<int>? onChanged,
  6. Color? backgroundColor,
  7. Decoration? decoration,
  8. EdgeInsetsGeometry? margin,
  9. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 4),
  10. 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});