showMenu<T> 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 popup menu that contains the items at position.

Implementation

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