DropdownItem<T> constructor

const DropdownItem<T>({
  1. required Widget child,
  2. double height = _kMenuItemHeight,
  3. bool intrinsicHeight = false,
  4. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  5. VoidCallback? onTap,
  6. T? value,
  7. bool enabled = true,
  8. bool closeOnTap = true,
  9. Key? key,
})

Creates a dropdown item.

The child property must be set.

Implementation

const DropdownItem({
  required super.child,
  super.height,
  super.intrinsicHeight,
  super.alignment,
  this.onTap,
  this.value,
  this.enabled = true,
  this.closeOnTap = true,
  super.key,
});