open<T> static method

Future<T?> open<T>(
  1. BuildContext context,
  2. Widget body, {
  3. ScrollBottomSheetConfig? config,
})

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

Implementation

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