open<T> static method

Future<T?> open<T>(
  1. BuildContext context,
  2. Widget body
)

Opens a bottom sheet by pushing a BottomSheetRoute onto the navigation stack.

Implementation

static Future<T?> open<T>(BuildContext context, Widget body) {
  return Navigator.push<T>(
    context,
    BottomSheetRoute<T>(body: body, config: config),
  );
}