popupMenu method
Implementation
@Deprecated('Use [PopupMenuButton] instead.')
Widget popupMenu(
Widget menu, {
void Function(dynamic)? onSelected,
void Function()? onCancelled,
/// If true, the widget will be the child of popup menu button.
bool asChild = false,
bool enabled = true,
}) {
return PopupMenuButton(
itemBuilder: (context) => [
PopupMenuItem(
enabled: enabled,
child: menu,
),
],
icon: !asChild ? this : null,
onCanceled: onCancelled,
onSelected: onSelected,
child: asChild ? this : null,
);
}