PopupButtonType.singleButton constructor

const PopupButtonType.singleButton({
  1. required String label,
  2. @Default.new(null) void onPressed()?,
})

Implementation

const factory PopupButtonType.singleButton({required String label, @Default(null) void Function()? onPressed}) = SinglePopupButton;