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