DropdownMenuItem constructor Null safety

const DropdownMenuItem(
  1. {Key? key,
  2. Callback? onTap,
  3. String? value,
  4. @Default(true) bool enabled,
  5. @Default(Alignment.centerLeft) Alignment alignment,
  6. required Widget child}
)

Implementation

const factory DropdownMenuItem({
  Key? key,
  Callback? onTap,
  String? value,
  @Default(true) bool enabled,
  @Default(Alignment.centerLeft) Alignment alignment,
  required Widget child,
}) = _DropdownMenuItem;