showMenu function
Future<Object?>
showMenu({
- required BuildContext context,
- required RelativeRect position,
- List<
PopupMenuEntry< items = const [],Object> > - Object? initValue,
- double? elevation,
- ShapeBorder? shape,
- Color? color,
Implementation
Future<Object?> showMenu(
{required BuildContext context,
required RelativeRect position,
List<PopupMenuEntry<Object>> items = const [],
Object? initValue,
double? elevation,
ShapeBorder? shape,
Color? color,
bool useRootNavigator = false}) {
return Navigator.push(
context,
_FullPopupRoute<Object>(
position: position,
elevation: elevation,
initValue: initValue,
shape: shape,
color: color,
items: items,
));
}