showMenu<T> static method

Future<T?> showMenu<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,
})

Show a menu

Implementation

static Future<T?> showMenu<T>({
  required RelativeRect position,
  required List<PopupMenuEntry<T>> items,
  T? initialValue,
  double? elevation,
  String? semanticLabel,
  ShapeBorder? shape,
  Color? color,
  bool useRootNavigator = false,
}) {
  _checkInit();
  return material.showMenu(
    context: _context,
    position: position,
    items: items,
    initialValue: initialValue,
    elevation: elevation,
    semanticLabel: semanticLabel,
    shape: shape,
    color: color,
    useRootNavigator: useRootNavigator,
  );
}