showFreeModalBottomSheet<T> function

Future<T> showFreeModalBottomSheet <T>(
  1. {@required BuildContext context,
  2. @required WidgetBuilder builder}
)

Implementation

Future<T> showFreeModalBottomSheet<T>({
  @required BuildContext context,
  @required WidgetBuilder builder,
}) {
  assert(context != null);
  assert(builder != null);
  assert(debugCheckHasMaterialLocalizations(context));
  return Navigator.push(
    context,
    _ModalBottomSheetRoute<T>(
      builder: builder,
      theme: Theme.of(context, shadowThemeOnly: true),
      barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
    ),
  );
}