showPlatformMenu<T> function

Future<T?> showPlatformMenu<T>(
  1. BuildContext context, {
  2. required WidgetBuilder builder,
  3. bool useScaffold = true,
  4. bool displayDragHandle = true,
  5. bool dismissible = true,
  6. bool draggable = true,
  7. Constraints? constraints,
  8. PathRouteSettings? settings,
  9. double? width,
  10. double? height,
  11. bool expand = false,
  12. bool useRootNavigator = true,
  13. bool nestModals = false,
})

Implementation

Future<T?> showPlatformMenu<T>(BuildContext context,
    {required WidgetBuilder builder,
    bool useScaffold = true,
    bool displayDragHandle = true,
    bool dismissible = true,
    bool draggable = true,
    Constraints? constraints,
    PathRouteSettings? settings,
    double? width,
    double? height,
    bool expand = false,
    bool useRootNavigator = true,
    bool nestModals = false}) {
  final opener = Menus.of<T>(context, useScaffold: useScaffold);
  return opener(
    context,
    builder: builder,
    displayDragHandle: displayDragHandle,
    dismissible: dismissible,
    draggable: draggable,
    settings: settings,
    width: width,
    useRootNavigator: useRootNavigator,
    height: height,
    expand: expand,
    nestModals: nestModals,
    constraints: constraints,
  );
}