showModalBottomSheet<T> method

Future<T?> showModalBottomSheet<T>({
  1. required WidgetBuilder builder,
  2. Color? backgroundColor,
  3. double? elevation,
  4. ShapeBorder? shape,
  5. Clip? clipBehavior,
  6. Color? barrierColor,
  7. bool isScrollControlled = false,
  8. bool useRootNavigator = false,
  9. bool isDismissible = true,
  10. bool enableDrag = true,
})

Shows a modal material design bottom sheet.

Equivalent to material.showModalBottomSheet.

Implementation

Future<T?> showModalBottomSheet<T>({
  required material.WidgetBuilder builder,
  material.Color? backgroundColor,
  double? elevation,
  material.ShapeBorder? shape,
  material.Clip? clipBehavior,
  material.Color? barrierColor,
  bool isScrollControlled: false,
  bool useRootNavigator: false,
  bool isDismissible: true,
  bool enableDrag: true,
}) {
  return material.showModalBottomSheet(
    context: this,
    builder: builder,
    backgroundColor: backgroundColor,
    elevation: elevation,
    shape: shape,
    clipBehavior: clipBehavior,
    barrierColor: barrierColor,
    isScrollControlled: isScrollControlled,
    useRootNavigator: useRootNavigator,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
  );
}