showMenuPopup<T> function

Future<T?> showMenuPopup<T>({
  1. required RelativeRect position,
  2. required List<PopupMenuEntry<T>> items,
  3. T? initialValue,
  4. double? elevation,
  5. String? semanticLabel,
  6. ShapeBorder? shape,
  7. Color? color,
  8. bool useRootNavigator = false,
})

Implementation

Future<T?> showMenuPopup<T>({
  required RelativeRect position,
  required List<PopupMenuEntry<T>> items,
  T? initialValue,
  double? elevation,
  String? semanticLabel,
  ShapeBorder? shape,
  Color? color,
  bool useRootNavigator = false,
}) =>
    showMenu(
        context: GlobalOptions().globalNavigatorKey.currentContext!,
        position: position,
        useRootNavigator: useRootNavigator,
        initialValue: initialValue,
        elevation: elevation,
        semanticLabel: semanticLabel,
        shape: shape,
        color: color,
        items: items);