showMenu function

Future<Object?> showMenu({
  1. required BuildContext context,
  2. required RelativeRect position,
  3. List<PopupMenuEntry<Object>> items = const [],
  4. Object? initValue,
  5. double? elevation,
  6. ShapeBorder? shape,
  7. Color? color,
  8. bool useRootNavigator = false,
})

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,
      ));
}