showModalBottomSheet<T> method

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

Shortcut for showModalBottomSheet(context: context, ...).

Implementation

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