open<T> static method

Future<T?> open<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

static Future<T?> open<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}) {
  return Modals.of(context, useScaffold: useScaffold).open(
    context,
    builder: builder,
    displayDragHandle: displayDragHandle,
    dismissible: dismissible,
    draggable: draggable,
    settings: settings,
    width: width,
    useRootNavigator: useRootNavigator,
    height: height,
    expand: expand,
    nestModals: nestModals,
    constraints: constraints,
  );
}